forked from OSchip/llvm-project
Silence warnings introduced with r333093
r333093 introduced several warnings (-Wlogical-not-parentheses, -Wbool-compare). Adding parentheses in MipsSEInstrInfo::isCopyInstr() to silence it. llvm-svn: 333097
This commit is contained in:
parent
6172c74696
commit
7d37bb42a1
|
@ -217,7 +217,7 @@ bool MipsSEInstrInfo::isCopyInstr(const MachineInstr &MI, MachineOperand &Src,
|
||||||
// Condition is made to match the creation of WRDSP/RDDSP copy instruction
|
// Condition is made to match the creation of WRDSP/RDDSP copy instruction
|
||||||
// from copyPhysReg function.
|
// from copyPhysReg function.
|
||||||
if (isReadOrWritToDSPReg(MI, isDSPControlWrite)) {
|
if (isReadOrWritToDSPReg(MI, isDSPControlWrite)) {
|
||||||
if (!MI.getOperand(1).isImm() || !MI.getOperand(1).getImm() == (1<<4))
|
if (!MI.getOperand(1).isImm() || !(MI.getOperand(1).getImm() == (1<<4)))
|
||||||
return false;
|
return false;
|
||||||
else if (isDSPControlWrite) {
|
else if (isDSPControlWrite) {
|
||||||
Src = MI.getOperand(0);
|
Src = MI.getOperand(0);
|
||||||
|
|
Loading…
Reference in New Issue