[llvm] r274951 - AsmPrinter: Fix emitKill() not flush()ing a raw_string_ostream
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 8 17:18:44 PDT 2016
Author: matze
Date: Fri Jul 8 19:18:43 2016
New Revision: 274951
URL: http://llvm.org/viewvc/llvm-project?rev=274951&view=rev
Log:
AsmPrinter: Fix emitKill() not flush()ing a raw_string_ostream
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=274951&r1=274950&r2=274951&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Fri Jul 8 19:18:43 2016
@@ -686,7 +686,7 @@ static void emitKill(const MachineInstr
AP.MF->getSubtarget().getRegisterInfo())
<< (Op.isDef() ? "<def>" : "<kill>");
}
- AP.OutStreamer->AddComment(Str);
+ AP.OutStreamer->AddComment(OS.str());
AP.OutStreamer->AddBlankLine();
}
More information about the llvm-commits
mailing list