Avoid printing a redundant space in SDNode->dump().
authorDan Gohman <gohman@apple.com>
Thu, 5 Nov 2009 18:49:11 +0000 (18:49 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 5 Nov 2009 18:49:11 +0000 (18:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86151 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 98e7317b493a56c36f0a4b03d003c81bd7fba26f..0f0515ba311e4822fbbdebe9b46d6a81d4fae1e1 100644 (file)
@@ -5814,9 +5814,8 @@ void SDNode::print_details(raw_ostream &OS, const SelectionDAG *G) const {
 
 void SDNode::print(raw_ostream &OS, const SelectionDAG *G) const {
   print_types(OS, G);
-  OS << " ";
   for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
-    if (i) OS << ", ";
+    if (i) OS << ", "; else OS << " ";
     OS << (void*)getOperand(i).getNode();
     if (unsigned RN = getOperand(i).getResNo())
       OS << ":" << RN;