aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-21 07:56:02 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-21 07:56:02 +0000
commit5affca0763836e15ca15e78ed3a0fd56ef6b2e92 (patch)
tree15c28ad37a9ab96977fbb7d13daaf8952989f58d /lib/CodeGen/MachineInstr.cpp
parent7bb38628955e551701c3bf988c2896a6b2c3e788 (diff)
Need a comma after imp-use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index b9d3ba7879..1f85e92259 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -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 << ',';