Skip to content

Commit c920939

Browse files
committed
rebase
Created using spr 1.3.7
2 parents 06a8079 + c36712e commit c920939

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)