diff options
author | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-07-10 06:18:03 +0000 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-07-10 06:18:03 +0000 |
commit | 77392c3f5e79e77cee608427e2c004cd2897e9d6 (patch) | |
tree | 7aca6c26eec8b62195f48508d280d7a7abe162c9 | |
parent | 3837f4273fcc40cc519035479aefe78e5cbd3055 (diff) | |
download | bcm5719-llvm-77392c3f5e79e77cee608427e2c004cd2897e9d6.tar.gz bcm5719-llvm-77392c3f5e79e77cee608427e2c004cd2897e9d6.zip |
Silence gcc warning by adding parentheses to condition [NFC]
Without this gcc 7.4.0 complains with
../include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h:457:54: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
isArtifactCast(TmpDef->getOpcode()) &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
"Expecting copy or artifact cast here");
~
llvm-svn: 365597
-rw-r--r-- | llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h b/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h index 2183ba0b02b..a22778b8848 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h @@ -453,9 +453,9 @@ private: MachineInstr *TmpDef = MRI.getVRegDef(PrevRegSrc); if (MRI.hasOneUse(PrevRegSrc)) { if (TmpDef != &DefMI) { - assert(TmpDef->getOpcode() == TargetOpcode::COPY || - isArtifactCast(TmpDef->getOpcode()) && - "Expecting copy or artifact cast here"); + assert((TmpDef->getOpcode() == TargetOpcode::COPY || + isArtifactCast(TmpDef->getOpcode())) && + "Expecting copy or artifact cast here"); DeadInsts.push_back(TmpDef); } |