From 0ed1f4264ae1f30eb164ca8fc94669c4f9bbd4f7 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 30 Oct 2009 02:01:10 +0000 Subject: [PATCH] Simplify this code and avoid an extra space character in the output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85568 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 2a25841b39e..9a803a16628 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1859,8 +1859,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { // Special case indirectbr instruction to get formatting nice and correct. Out << ' '; writeOperand(Operand, true); - Out << ", "; - Out << " ["; + Out << ", ["; for (unsigned i = 1, e = I.getNumOperands(); i != e; ++i) { if (i != 1)