forked from OSchip/llvm-project
Fix a bug found by inspection by PVS-Studio.
This condition is trivially always true prior to the change. The comment at the call site makes it clear that we expect *all* of these to be '=', 'S', or 'I' so fix the code. We have a bug I will update to track the fact that Clang doesn't warn on this: http://llvm.org/PR13101 llvm-svn: 285930
This commit is contained in:
parent
0e5df9fc15
commit
fca1ff0da2
|
@ -205,7 +205,7 @@ static bool isOuterMostDepPositive(CharMatrix &DepMatrix, unsigned Row,
|
|||
static bool containsNoDependence(CharMatrix &DepMatrix, unsigned Row,
|
||||
unsigned Column) {
|
||||
for (unsigned i = 0; i < Column; ++i) {
|
||||
if (DepMatrix[Row][i] != '=' || DepMatrix[Row][i] != 'S' ||
|
||||
if (DepMatrix[Row][i] != '=' && DepMatrix[Row][i] != 'S' &&
|
||||
DepMatrix[Row][i] != 'I')
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue