[clang] Use cast_or_null instead of cast (PR #93749)

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Wed May 29 16:35:36 PDT 2024


ahatanak wrote:

Note that the call to `hasInit` at the beginning of function `VarDecl::getInit` returns true even when the variable doesn't have an initializer if `VarDecl::ensureEvaluatedStmt` is called before that.

https://github.com/llvm/llvm-project/pull/93749


More information about the cfe-commits mailing list