================ @@ -414,7 +414,7 @@ let Class = PropertyTypeCase<APValue, "Union"> in { let Read = [{ node.getUnionValue() }]; } def : Creator<[{ - return APValue(cast<clang::FieldDecl>(fieldDecl), std::move(value)); + return APValue(cast_if_present<clang::FieldDecl>(fieldDecl), std::move(value)); ---------------- alexfh wrote:
Sorry to make you reconstruct this explanation yourself @hokein. Added a comment. https://github.com/llvm/llvm-project/pull/140179 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits