From 69fa8ffeef2a3c68cc7d6edc3cfd862b74501af5 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 21 Sep 2011 00:25:23 +0000 Subject: In the disassembler C API, be careful not to confuse the comment streamer that the disassembler outputs annotations on with the streamer that the InstPrinter will print them on. llvm-svn: 140217 --- llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.cpp') diff --git a/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.cpp b/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.cpp index 18151f4c6de..10a8f9ac70b 100644 --- a/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.cpp +++ b/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.cpp @@ -28,7 +28,7 @@ using namespace llvm; void MSP430InstPrinter::printInst(const MCInst *MI, raw_ostream &O, StringRef Annot) { printInstruction(MI, O); - if (CommentStream) printAnnotation(*CommentStream, Annot); + if (CommentStream) printAnnotation(O, Annot); } void MSP430InstPrinter::printPCRelImmOperand(const MCInst *MI, unsigned OpNo, -- cgit v1.2.3