diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-04-15 17:32:01 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-04-15 17:32:01 +0000 |
commit | d0275ed8b42c93784a5fc0f13229c5636ade7f07 (patch) | |
tree | 4d7c02d47642e3916b83f5ee26091b7f487ce1e2 /llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp | |
parent | 6f13d0ca84bd6eafd7d72bbefbba0d711a204f85 (diff) | |
download | bcm5719-llvm-d0275ed8b42c93784a5fc0f13229c5636ade7f07.tar.gz bcm5719-llvm-d0275ed8b42c93784a5fc0f13229c5636ade7f07.zip |
[WinEH] Use the parent function when computing frameescape labels
Fixes assertions in MC when a local label wasn't defined.
llvm-svn: 235025
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp b/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp index 8cbf3407cf7..0d422d83e2d 100644 --- a/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp @@ -468,7 +468,7 @@ void Win64Exception::emitCXXFrameHandler3Table(const MachineFunction *MF) { if (HT.CatchObjRecoverIdx >= 0) { MCSymbol *FrameAllocOffset = Asm->OutContext.getOrCreateFrameAllocSymbol( - GlobalValue::getRealLinkageName(F->getName()), + GlobalValue::getRealLinkageName(ParentF->getName()), HT.CatchObjRecoverIdx); FrameAllocOffsetRef = MCSymbolRefExpr::Create( FrameAllocOffset, MCSymbolRefExpr::VK_None, Asm->OutContext); |