mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +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();
|
const TargetAsmInfo &asmInfo = context.getTargetAsmInfo();
|
||||||
|
|
||||||
if (!asmInfo.isFunctionEHFrameSymbolPrivate()) {
|
if (!asmInfo.isFunctionEHFrameSymbolPrivate()) {
|
||||||
Twine EHName = frame.Function->getName() + Twine(".eh");
|
MCSymbol *EHSym = context.GetOrCreateSymbol(
|
||||||
MCSymbol *EHSym = context.GetOrCreateSymbol(EHName);
|
frame.Function->getName() + Twine(".eh"));
|
||||||
streamer.EmitEHSymAttributes(frame.Function, EHSym);
|
streamer.EmitEHSymAttributes(frame.Function, EHSym);
|
||||||
streamer.EmitLabel(EHSym);
|
streamer.EmitLabel(EHSym);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user