diff options
author | Igor Wodiany <igor.wodiany@imgtec.com> | 2025-06-04 13:15:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-04 13:15:28 +0100 |
commit | 3ce32819894f15a9a82b62a7b87ba8b7b93128ef (patch) | |
tree | 97f567e40f579adeab9136ecc6e637a6dbaa4917 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5a531b115844a038d7bd0108ebafe6bacbef75e3 (diff) | |
download | llvm-3ce32819894f15a9a82b62a7b87ba8b7b93128ef.zip llvm-3ce32819894f15a9a82b62a7b87ba8b7b93128ef.tar.gz llvm-3ce32819894f15a9a82b62a7b87ba8b7b93128ef.tar.bz2 |
[mlir][spirv] Check output of getConstantInt (#140568)
This patch adds an assert to check if the result of `getConstantInt` is
non-null. Previously the code failed with Segmentation Fault if
`getConstantInt` failed to look up the value. This primarily occurrs when
the value is defined as OpSpecConstant rather than OpConstant.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions