Skip to content

Commit 70db4af

Browse files
committed
rebase
Created using spr 1.3.7
2 parents 4eac640 + 3dc94df commit 70db4af

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
@@ -929,11 +929,10 @@ static void handleNonConstMemberCall(const CallExpr *Expr,
929929
RecordStorageLocation *RecordLoc,
930930
const MatchFinder::MatchResult &Result,
931931
LatticeTransferState &State) {
932-
if (RecordLoc == nullptr)
933-
return;
934-
State.Lattice.clearConstMethodReturnValues(*RecordLoc);
935-
State.Lattice.clearConstMethodReturnStorageLocations(*RecordLoc);
936-
932+
if (RecordLoc) {
933+
State.Lattice.clearConstMethodReturnValues(*RecordLoc);
934+
State.Lattice.clearConstMethodReturnStorageLocations(*RecordLoc);
935+
}
937936
if (isStatusOrType(Expr->getType()))
938937
transferStatusOrReturningCall(Expr, State);
939938
}

0 commit comments

Comments
 (0)