aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MicrosoftCXXABI.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-06-24 00:08:06 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-06-24 00:08:06 +0000
commit564360be450b319aeafc26698be9811837bfb826 (patch)
tree2a441b833973f9eb25a599b0f77a89604eeb9978 /lib/CodeGen/MicrosoftCXXABI.cpp
parentccc263b44c62ce3a02f797a3ddb3d6017cf0e5e4 (diff)
Patch to correctly mangle block helper functions
when block literal is declared inside a ctor/dtor. Fixes radr 8096995. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MicrosoftCXXABI.cpp')
-rw-r--r--lib/CodeGen/MicrosoftCXXABI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MicrosoftCXXABI.cpp b/lib/CodeGen/MicrosoftCXXABI.cpp
index 3823c9dc20..ddf32ece58 100644
--- a/lib/CodeGen/MicrosoftCXXABI.cpp
+++ b/lib/CodeGen/MicrosoftCXXABI.cpp
@@ -402,7 +402,7 @@ void MicrosoftCXXNameMangler::manglePostfix(const DeclContext *DC,
if (const BlockDecl *BD = dyn_cast<BlockDecl>(DC)) {
llvm::SmallString<64> Name;
- Context.mangleBlock(BD, Name);
+ Context.mangleBlock(GlobalDecl(), BD, Name);
Out << Name << '@';
return manglePostfix(DC->getParent(), NoFunction);
}