mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
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");
~
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365597 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user