From: Argyrios Kyrtzidis Date: Thu, 27 Oct 2011 00:53:06 +0000 (+0000) Subject: Make use of the parameter in Sema::ActOnObjCTemporaryExitContainerContext. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a7dc8a54b8c35c523e44f7711c9923f5463f43b;p=clang Make use of the parameter in Sema::ActOnObjCTemporaryExitContainerContext. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143088 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 4fa9cbdcc5..5f26c3185b 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -8288,7 +8288,8 @@ void Sema::ActOnObjCContainerFinishDefinition() { } void Sema::ActOnObjCTemporaryExitContainerContext(DeclContext *DC) { - OriginalLexicalContext = CurContext; + assert(DC == CurContext && "Mismatch of container contexts"); + OriginalLexicalContext = DC; ActOnObjCContainerFinishDefinition(); }