Skip to content

Commit 77f01ca

Browse files
committed
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.7 [skip ci]
1 parent 8189b6d commit 77f01ca

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)