[clang] [Clang] Prevent null pointer dereferencein SVE tuple functions (PR #94267)

2024-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (smanna12) Changes This patch replaces dyn_cast<> with cast<> for obtaining ScalableVectorType pointers in the EmitSVETupleSetOrGet() and EmitSVETupleCreate() functions to ensure that the code expects valid ScalableVectorTyp

[clang] [Clang] Prevent null pointer dereferencein SVE tuple functions (PR #94267)

2024-06-03 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/94267 This patch replaces dyn_cast<> with cast<> for obtaining ScalableVectorType pointers in the EmitSVETupleSetOrGet() and EmitSVETupleCreate() functions to ensure that the code expects valid ScalableVectorType ins