AsmWriter: Only print one space after the load type
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 2 Mar 2015 15:24:41 +0000 (15:24 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 2 Mar 2015 15:24:41 +0000 (15:24 +0000)
Before: %x = load i32,  i32* %i
After:  %x = load i32, i32* %i

Purely cosmetic, so no new test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230966 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/AsmWriter.cpp

index 70837c4d9db48dae0323b642d2a96d087b928933..685a48d538d8be156126e18f834819fc9006ceed 100644 (file)
@@ -2906,7 +2906,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
     } else if (const auto *LI = dyn_cast<LoadInst>(&I)) {
       Out << ' ';
       TypePrinter.print(LI->getType(), Out);
-      Out << ", ";
+      Out << ',';
     }
 
     // PrintAllTypes - Instructions who have operands of all the same type