From bdbc98f3eff0fef3e801a7189b75c1fa99200be0 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sat, 16 May 2009 03:28:54 +0000 Subject: Pacify gcc-4.3, which suggests explicit braces here to avoid an ambiguous else. llvm-svn: 71924 --- llvm/lib/CodeGen/MachineVerifier.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib') 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. -- cgit v1.2.3