summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaLambda.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-07-10 00:30:46 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-07-10 00:30:46 +0000
commit3b7d46c3ae516c81d19e53fa9d9b105919f6dd97 (patch)
treecea38305a338cf8065c2eb8e2e832623cd01f2de /clang/lib/Sema/SemaLambda.cpp
parenta830ea7431afca36431825f028a3c7817d1a940d (diff)
downloadbcm5719-llvm-3b7d46c3ae516c81d19e53fa9d9b105919f6dd97.tar.gz
bcm5719-llvm-3b7d46c3ae516c81d19e53fa9d9b105919f6dd97.zip
More local mangling fixes.
Compute mangling numbers for externally visible local variables and tags. Change the mangler to consistently use discriminators where necessary. Tweak the scheme we use to number decls which are not externally visible to avoid unnecessary discriminators in common cases now that we request them more consistently. Fixes <rdar://problem/14204721>. llvm-svn: 185986
Diffstat (limited to 'clang/lib/Sema/SemaLambda.cpp')
-rw-r--r--clang/lib/Sema/SemaLambda.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLambda.cpp b/clang/lib/Sema/SemaLambda.cpp
index 1e6ef9baf70..8351ff27869 100644
--- a/clang/lib/Sema/SemaLambda.cpp
+++ b/clang/lib/Sema/SemaLambda.cpp
@@ -53,7 +53,7 @@ static bool isInInlineFunction(const DeclContext *DC) {
}
MangleNumberingContext *
-Sema::getCurrentMangleNumberContext(DeclContext *DC,
+Sema::getCurrentMangleNumberContext(const DeclContext *DC,
Decl *&ManglingContextDecl) {
// Compute the context for allocating mangling numbers in the current
// expression, if the ABI requires them.
OpenPOWER on IntegriCloud