aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-05-04 22:53:26 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-05-04 22:53:26 +0000
commite89496fe63c179c189558b1d8e2a7e9a8faee904 (patch)
treefea1e18ddd04553ef273271051254f717ddc5351 /llvm/lib/CodeGen/MachineInstr.cpp
parente2b3744890f6394036974c7abe7c1abe5f94d169 (diff)
downloadllvm-e89496fe63c179c189558b1d8e2a7e9a8faee904.zip
llvm-e89496fe63c179c189558b1d8e2a7e9a8faee904.tar.gz
llvm-e89496fe63c179c189558b1d8e2a7e9a8faee904.tar.bz2
Remove extra comma in debug output.
llvm-svn: 156219
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 46ea003..594482e 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -264,7 +264,7 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const {
NeedComma = true;
}
- if (isKill() || isDead() || isUndef() || isInternalRead()) {
+ if (isKill() || isDead() || (isUndef() && isUse()) || isInternalRead()) {
if (NeedComma) OS << ',';
NeedComma = false;
if (isKill()) {