Skip to content

Commit 78f9218

Browse files
committed
rebase
Created using spr 1.3.7
2 parents 7043f8a + 9128acb commit 78f9218

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

0 commit comments

Comments
 (0)