summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@mips.com>2018-05-23 16:27:51 +0000
committerPetar Jovanovic <petar.jovanovic@mips.com>2018-05-23 16:27:51 +0000
commit7d37bb42a14351890b797986dac60730a52c27c7 (patch)
treecd16ceaa2d392ca57351b5e9a03f261df70c4588 /llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
parent6172c74696d33bf732dd935f40e5f6ed33a00dc0 (diff)
downloadbcm5719-llvm-7d37bb42a14351890b797986dac60730a52c27c7.tar.gz
bcm5719-llvm-7d37bb42a14351890b797986dac60730a52c27c7.zip
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
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSEInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsSEInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp b/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
index c3a43ad9e32..f31cc3defb4 100644
--- a/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
+++ b/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
@@ -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);
OpenPOWER on IntegriCloud