================ @@ -599,7 +599,7 @@ void transferAssignment(const CXXOperatorCallExpr *E, BoolValue &HasValueVal, LatticeTransferState &State) { assert(E->getNumArgs() > 0); - if (auto *Loc = cast<RecordStorageLocation>( + if (auto *Loc = dyn_cast_or_null<RecordStorageLocation>( ---------------- HerrCai0907 wrote:
If getStorageLocation may return nullptr, it should be cast_or_null. `dyn_cast` means it may be not RecordStorageLocation https://github.com/llvm/llvm-project/pull/68510 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits