Don't pass back a reference to a temporary.
[oota-llvm.git] / lib / CodeGen / AsmPrinter.cpp
index 7b579c4ea303af7b39f29588e12d74699665ad53..6622bcdee669e8ef605777b770713ce7b32e6633 100644 (file)
@@ -160,8 +160,7 @@ bool AsmPrinter::doFinalization(Module &M) {
   return false;
 }
 
-const std::string &
-AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) {
+std::string AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) {
   assert(MF && "No machine function?");
   return Mang->makeNameProper(MF->getFunction()->getName() + ".eh",
                               TAI->getGlobalPrefix());