diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-21 01:17:38 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-21 01:17:38 +0000 |
commit | 51ec0cf4aa94f977b24fc9cfbb992ea4fe9889c9 (patch) | |
tree | 81cf9159b0b4c8d6f8c06c61a9e9fd3964782aec /clang/lib/Sema/SemaLambda.cpp | |
parent | 90208720e31e47ebb0b71edd19429bb07e94acd9 (diff) | |
download | bcm5719-llvm-51ec0cf4aa94f977b24fc9cfbb992ea4fe9889c9.tar.gz bcm5719-llvm-51ec0cf4aa94f977b24fc9cfbb992ea4fe9889c9.zip |
Factor out function to determine whether we're performing a template
instantiation.
In preparation for converting the template stack to a more general context
stack (so we can include context notes for other kinds of context).
llvm-svn: 295686
Diffstat (limited to 'clang/lib/Sema/SemaLambda.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLambda.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLambda.cpp b/clang/lib/Sema/SemaLambda.cpp index da2768f2131..c17f9fbd07e 100644 --- a/clang/lib/Sema/SemaLambda.cpp +++ b/clang/lib/Sema/SemaLambda.cpp @@ -312,7 +312,7 @@ Sema::getCurrentMangleNumberContext(const DeclContext *DC, // In the following contexts [...] the one-definition rule requires closure // types in different translation units to "correspond": bool IsInNonspecializedTemplate = - !ActiveTemplateInstantiations.empty() || CurContext->isDependentContext(); + inTemplateInstantiation() || CurContext->isDependentContext(); switch (Kind) { case Normal: { // -- the bodies of non-exported nonspecialized template functions |