Skip to content

Commit 9959d66

Browse files
committed
rebase\
Created using spr 1.3.7
2 parents 24cb2c1 + 77f01ca commit 9959d66

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -948,11 +948,10 @@ static void handleNonConstMemberCall(const CallExpr *Expr,
948948
RecordStorageLocation *RecordLoc,
949949
const MatchFinder::MatchResult &Result,
950950
LatticeTransferState &State) {
951-
if (RecordLoc == nullptr)
952-
return;
953-
State.Lattice.clearConstMethodReturnValues(*RecordLoc);
954-
State.Lattice.clearConstMethodReturnStorageLocations(*RecordLoc);
955-
951+
if (RecordLoc) {
952+
State.Lattice.clearConstMethodReturnValues(*RecordLoc);
953+
State.Lattice.clearConstMethodReturnStorageLocations(*RecordLoc);
954+
}
956955
if (isStatusOrType(Expr->getType()))
957956
transferStatusOrReturningCall(Expr, State);
958957
}

0 commit comments

Comments
 (0)