aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorAmr Hesham <amr96@programmer.net>2025-10-23 11:04:09 +0200
committerGitHub <noreply@github.com>2025-10-23 09:04:09 +0000
commit4f99111faf51a27f138f46f90bb1445a8962d13b (patch)
tree16fc0ca4b42df270fd8c563fbff038f9ac025401 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parentf567367c7f1d543c2825f13aed83661dd4790e66 (diff)
downloadllvm-4f99111faf51a27f138f46f90bb1445a8962d13b.zip
llvm-4f99111faf51a27f138f46f90bb1445a8962d13b.tar.gz
llvm-4f99111faf51a27f138f46f90bb1445a8962d13b.tar.bz2
[CIR] ConstRecordBuilder check if attribute present before casting (#164575)
Fix the crash because in `ConstRecordBuilder::build` we cast to TypedAttr then we check if it null, but in case that the result from emitter is nullptr, that cast crash, In this PR I fixed the order to check first if it not null, then casting to the TypedAttr
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions