Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check whether EvaluatedStmt::Value is valid in VarDecl::hasInit
VarDecl::isNull() doesn't tell whether the VarDecl has an initializer as methods like ensureEvaluatedStmt can create an EvaluatedStmt even when there isn't an initializer. Revert e1c3e16 as the change isn't needed anymore with this change. See the discussion in llvm#93749.
- Loading branch information