forked from OSchip/llvm-project
parent
84d8fae3be
commit
8c80735929
|
@ -105,9 +105,6 @@ DeclContext *Sema::getContainingDC(DeclContext *DC) {
|
|||
if (isa<ObjCMethodDecl>(DC))
|
||||
return Context.getTranslationUnitDecl();
|
||||
|
||||
if (Decl *D = dyn_cast<Decl>(DC))
|
||||
return D->getLexicalDeclContext();
|
||||
|
||||
return DC->getLexicalParent();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue