summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-07-09 00:18:43 +0000
committerMatthias Braun <matze@braunis.de>2016-07-09 00:18:43 +0000
commit07985809abeb97c131d37ee389ee0fea2a646516 (patch)
treea4153d2d84ddb6f0532dee0444426400ba56f004 /llvm/lib
parent7a298c1df0e4be8d8a21479aacdf9481008bf5fb (diff)
downloadbcm5719-llvm-07985809abeb97c131d37ee389ee0fea2a646516.tar.gz
bcm5719-llvm-07985809abeb97c131d37ee389ee0fea2a646516.zip
AsmPrinter: Fix emitKill() not flush()ing a raw_string_ostream
llvm-svn: 274951
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 220a8ab5a20..272baceeed8 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -686,7 +686,7 @@ static void emitKill(const MachineInstr *MI, AsmPrinter &AP) {
AP.MF->getSubtarget().getRegisterInfo())
<< (Op.isDef() ? "<def>" : "<kill>");
}
- AP.OutStreamer->AddComment(Str);
+ AP.OutStreamer->AddComment(OS.str());
AP.OutStreamer->AddBlankLine();
}
OpenPOWER on IntegriCloud