Skip to content

Commit c36712e

Browse files
committed
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.7 [skip ci]
1 parent a080134 commit c36712e

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
@@ -825,11 +825,10 @@ static void handleNonConstMemberCall(const CallExpr *Expr,
825825
RecordStorageLocation *RecordLoc,
826826
const MatchFinder::MatchResult &Result,
827827
LatticeTransferState &State) {
828-
if (RecordLoc == nullptr)
829-
return;
830-
State.Lattice.clearConstMethodReturnValues(*RecordLoc);
831-
State.Lattice.clearConstMethodReturnStorageLocations(*RecordLoc);
832-
828+
if (RecordLoc) {
829+
State.Lattice.clearConstMethodReturnValues(*RecordLoc);
830+
State.Lattice.clearConstMethodReturnStorageLocations(*RecordLoc);
831+
}
833832
if (isStatusOrType(Expr->getType()))
834833
transferStatusOrReturningCall(Expr, State);
835834
}

0 commit comments

Comments
 (0)