summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MangleNumberingContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/MangleNumberingContext.cpp')
-rw-r--r--clang/lib/AST/MangleNumberingContext.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/AST/MangleNumberingContext.cpp b/clang/lib/AST/MangleNumberingContext.cpp
index ec503e01932..b46a085dc9e 100644
--- a/clang/lib/AST/MangleNumberingContext.cpp
+++ b/clang/lib/AST/MangleNumberingContext.cpp
@@ -38,6 +38,8 @@ MangleNumberingContext::getManglingNumber(const BlockDecl *BD) {
}
unsigned
-MangleNumberingContext::getManglingNumber(const TagDecl *TD) {
- return ++TagManglingNumbers[TD->getIdentifier()];
+MangleNumberingContext::getStaticLocalNumber(const VarDecl *VD) {
+ // FIXME: Compute a BlockPointerType? Not obvious how.
+ const Type *Ty = 0;
+ return ++ManglingNumbers[Ty];
}
OpenPOWER on IntegriCloud