summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-05-19 18:15:53 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-05-19 18:15:53 +0000
commitb0f1dbdf3342117494cec6d210965cc727c81a2e (patch)
tree08ff79572dfc0cf2fdf9878ad5f1abd5683ba875 /clang/lib/AST/MicrosoftMangle.cpp
parent0376b1a2d7b4a10d95a05bc2e11e81a6c31c67ce (diff)
[MS ABI] Ignore transparent contexts when determining the effective context
We didn't skip over extern "C++" contexts, causing us to mangle things which don't need to be mangled. llvm-svn: 270089
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r--clang/lib/AST/MicrosoftMangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index 774dab05728a..a88e2a621ce2 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -94,7 +94,7 @@ static const DeclContext *getEffectiveDeclContext(const Decl *D) {
return getEffectiveDeclContext(cast<Decl>(DC));
}
- return DC;
+ return DC->getRedeclContext();
}
static const DeclContext *getEffectiveParentContext(const DeclContext *DC) {