forked from OSchip/llvm-project
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. llvm-svn: 130793
This commit is contained in:
parent
e67afe15b4
commit
f6daf94ab2
|
@ -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