diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-05-19 18:15:53 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-05-19 18:15:53 +0000 |
commit | b0f1dbdf3342117494cec6d210965cc727c81a2e (patch) | |
tree | 08ff79572dfc0cf2fdf9878ad5f1abd5683ba875 /clang/lib/AST/MicrosoftMangle.cpp | |
parent | 0376b1a2d7b4a10d95a05bc2e11e81a6c31c67ce (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.cpp | 2 |
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) { |