Add parens to fix GCC warning:

lib/Target/X86/X86MCCodeEmitter.cpp: 190: error: suggest parentheses around '&&' within '||'

llvm-svn: 115064
This commit is contained in:
Nick Lewycky 2010-09-29 18:56:57 +00:00
parent cfd405fb42
commit 23ebf4b319
1 changed files with 2 additions and 2 deletions

View File

@ -186,8 +186,8 @@ static bool Is32BitMemOperand(const MCInst &MI, unsigned Op) {
const MCOperand &BaseReg = MI.getOperand(Op+X86::AddrBaseReg);
const MCOperand &IndexReg = MI.getOperand(Op+X86::AddrIndexReg);
if (BaseReg.getReg() != 0 && X86::GR32RegClass.contains(BaseReg.getReg()) ||
IndexReg.getReg() != 0 && X86::GR32RegClass.contains(IndexReg.getReg()))
if ((BaseReg.getReg() != 0 && X86::GR32RegClass.contains(BaseReg.getReg())) ||
(IndexReg.getReg() != 0 && X86::GR32RegClass.contains(IndexReg.getReg())))
return true;
return false;
}