diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-23 01:43:54 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-23 01:43:54 +0000 |
commit | 696e31271b981e14b4f7741c3a64ac8fc3bff4f6 (patch) | |
tree | eb8f670fd3051cb5118947471f7a57ab06e1a247 /clang/lib/Sema/Sema.cpp | |
parent | e550d11d341a967a668b21753f7b13d677b83b8d (diff) | |
download | bcm5719-llvm-696e31271b981e14b4f7741c3a64ac8fc3bff4f6.tar.gz bcm5719-llvm-696e31271b981e14b4f7741c3a64ac8fc3bff4f6.zip |
Rename ActiveTemplateInstantiation to CodeSynthesisContext in preparation for
using it for other kinds of context (where we currently produce context notes
in a highly ad-hoc manner).
llvm-svn: 295919
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 3ed2fd3e93f..9edd4f2edcd 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -1230,7 +1230,7 @@ BlockScopeInfo *Sema::getCurBlock() { if (CurBSI && CurBSI->TheDecl && !CurBSI->TheDecl->Encloses(CurContext)) { // We have switched contexts due to template instantiation. - assert(!ActiveTemplateInstantiations.empty()); + assert(!CodeSynthesisContexts.empty()); return nullptr; } @@ -1253,7 +1253,7 @@ LambdaScopeInfo *Sema::getCurLambda(bool IgnoreCapturedRegions) { if (CurLSI && CurLSI->Lambda && !CurLSI->Lambda->Encloses(CurContext)) { // We have switched contexts due to template instantiation. - assert(!ActiveTemplateInstantiations.empty()); + assert(!CodeSynthesisContexts.empty()); return nullptr; } |