mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-07 20:40:28 +00:00
MCDwarf: Don't save Twine to local variable, this is almost never safe to do
(and should thus never be done). - Should fix a crash on win32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130793 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9493a285d1
commit
b47426b4de
@ -740,8 +740,8 @@ MCSymbol *FrameEmitterImpl::EmitFDE(MCStreamer &streamer,
|
||||
const TargetAsmInfo &asmInfo = context.getTargetAsmInfo();
|
||||
|
||||
if (!asmInfo.isFunctionEHFrameSymbolPrivate()) {
|
||||
Twine EHName = frame.Function->getName() + Twine(".eh");
|
||||
MCSymbol *EHSym = context.GetOrCreateSymbol(EHName);
|
||||
MCSymbol *EHSym = context.GetOrCreateSymbol(
|
||||
frame.Function->getName() + Twine(".eh"));
|
||||
streamer.EmitEHSymAttributes(frame.Function, EHSym);
|
||||
streamer.EmitLabel(EHSym);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user