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 4fa9cbd..5f26c31 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -8288,7 +8288,8 @@
}
void Sema::ActOnObjCTemporaryExitContainerContext(DeclContext *DC) {
- OriginalLexicalContext = CurContext;
+ assert(DC == CurContext && "Mismatch of container contexts");
+ OriginalLexicalContext = DC;
ActOnObjCContainerFinishDefinition();
}