summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-05-16 03:28:54 +0000
committerDuncan Sands <baldrick@free.fr>2009-05-16 03:28:54 +0000
commitbdbc98f3eff0fef3e801a7189b75c1fa99200be0 (patch)
tree2d7539949458df3e72a84e521b0679ff349efbc7 /llvm/lib
parente4302ee3bbb87105b21af43af232b1728f525cc8 (diff)
downloadbcm5719-llvm-bdbc98f3eff0fef3e801a7189b75c1fa99200be0.tar.gz
bcm5719-llvm-bdbc98f3eff0fef3e801a7189b75c1fa99200be0.zip
Pacify gcc-4.3, which suggests explicit braces here
to avoid an ambiguous else. llvm-svn: 71924
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 22866c6b600..70ccae6423b 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -345,7 +345,7 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum)
addRegWithSubRegs(regsKilled, Reg);
}
// Explicit use of a dead register.
- if (!MO->isImplicit() && !regsLive.count(Reg))
+ if (!MO->isImplicit() && !regsLive.count(Reg)) {
if (TargetRegisterInfo::isPhysicalRegister(Reg)) {
// Reserved registers may be used even when 'dead'.
if (!isReserved(Reg))
@@ -360,6 +360,7 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum)
else if (MI->getOpcode() != TargetInstrInfo::PHI)
MInfo.vregsLiveIn.insert(std::make_pair(Reg, MI));
}
+ }
} else {
// Register defined.
// TODO: verify that earlyclobber ops are not used.
OpenPOWER on IntegriCloud