forked from OSchip/llvm-project
Fix early-return logic in scanReachableSymbols() to match the rest of the recursive logic in the methods of ScanReachableSymbols.
llvm-svn: 90245
This commit is contained in:
parent
4886c8154d
commit
d3a241a9c6
|
@ -312,10 +312,10 @@ bool GRState::scanReachableSymbols(const SVal *I, const SVal *E,
|
|||
SymbolVisitor &visitor) const {
|
||||
ScanReachableSymbols S(this, visitor);
|
||||
for ( ; I != E; ++I) {
|
||||
if (S.scan(*I))
|
||||
return true;
|
||||
if (!S.scan(*I))
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GRState::scanReachableSymbols(const MemRegion * const *I,
|
||||
|
@ -323,10 +323,10 @@ bool GRState::scanReachableSymbols(const MemRegion * const *I,
|
|||
SymbolVisitor &visitor) const {
|
||||
ScanReachableSymbols S(this, visitor);
|
||||
for ( ; I != E; ++I) {
|
||||
if (S.scan(*I))
|
||||
return true;
|
||||
if (!S.scan(*I))
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue