set the temporary bit on MCSymbols correctly.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfException.cpp
index b85ae3ba99e1c392a85ed461e3f76b0e002f635e..47b829d7637add31e826fa0296af173ce9e72792 100644 (file)
@@ -60,7 +60,7 @@ const MCExpr *DwarfException::CreateLabelDiff(const MCExpr *ExprRef,
   raw_svector_ostream(Name) << MAI->getPrivateGlobalPrefix()
                             << LabelName << Asm->getFunctionNumber()
                             << "_" << Index;
-  MCSymbol *DotSym = Asm->OutContext.GetOrCreateSymbol(Name.str());
+  MCSymbol *DotSym = Asm->OutContext.GetOrCreateTemporarySymbol(Name.str());
   Asm->OutStreamer.EmitLabel(DotSym);
 
   return MCBinaryExpr::CreateSub(ExprRef,