[DA] Fix warning introduced by #189740 (#190226)

The following warning is issued for llvm/lib/Analysis/DependenceAnalysis.cpp:2004

warning: suggest parentheses around ‘&&’ within ‘||’
This commit is contained in:
Ehsan Amiri 2026-04-02 15:15:25 -04:00 committed by GitHub
parent e2e5db8401
commit 0abef30c80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2000,8 +2000,8 @@ bool DependenceInfo::testSIV(const SCEV *Src, const SCEV *Dst, unsigned &Level,
Level = mapDstLoop(CurDstLoop);
return weakZeroSrcSIVtest(Src, DstAddRec, Level, Result);
}
assert(SrcAddRec != nullptr ||
DstAddRec != nullptr && "SIV test expected at least one AddRec");
assert((SrcAddRec != nullptr || DstAddRec != nullptr) &&
"SIV test expected at least one AddRec");
return false;
}