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:
Daniel Dunbar 2011-05-03 21:33:37 +00:00
parent e67afe15b4
commit f6daf94ab2
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}