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:
Petar Jovanovic 2018-05-23 16:27:51 +00:00
parent 6172c74696
commit 7d37bb42a1
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ bool MipsSEInstrInfo::isCopyInstr(const MachineInstr &MI, MachineOperand &Src,
// Condition is made to match the creation of WRDSP/RDDSP copy instruction
// from copyPhysReg function.
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;
else if (isDSPControlWrite) {
Src = MI.getOperand(0);