Need a comma after imp-use.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 21 Oct 2009 07:56:02 +0000 (07:56 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 21 Oct 2009 07:56:02 +0000 (07:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84749 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineInstr.cpp

index b9d3ba78794ef808c63bb96525b357401dc53fa0..1f85e9225909fe593567222d3102093c7a5d48ce 100644 (file)
@@ -220,8 +220,10 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const {
           OS << "imp-";
         OS << "def";
         NeedComma = true;
-      } else if (isImplicit())
+      } else if (isImplicit()) {
           OS << "imp-use";
+          NeedComma = true;
+      }
 
       if (isKill() || isDead() || isUndef()) {
         if (NeedComma) OS << ',';