Closed ahatanaka closed 1 month ago
Eval->Value.get returns a null pointer when the variable doesn't have an initializer. Use cast_if_present instead of cast.
Eval->Value.get
cast_if_present
cast
This fixes https://github.com/llvm/llvm-project/issues/93625.
rdar://128482541 (cherry picked from commit e1c3e16d24b5cc097ff08e9283f53319acd3f245)
Conflicts: clang/docs/ReleaseNotes.rst
Eval->Value.get
returns a null pointer when the variable doesn't have an initializer. Usecast_if_present
instead ofcast
.This fixes https://github.com/llvm/llvm-project/issues/93625.
rdar://128482541 (cherry picked from commit e1c3e16d24b5cc097ff08e9283f53319acd3f245)
Conflicts: clang/docs/ReleaseNotes.rst