From 4a7dc8a54b8c35c523e44f7711c9923f5463f43b Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Thu, 27 Oct 2011 00:53:06 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaDecl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- 2.50.1