Remove extra comma in debug output.

llvm-svn: 156219
This commit is contained in:
Jakob Stoklund Olesen 2012-05-04 22:53:26 +00:00
parent 4f57670dab
commit c169683227

View File

@ -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()) {