diff options
author | Mats Petersson <mats.petersson@arm.com> | 2025-05-13 15:37:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-13 15:37:26 +0100 |
commit | 764e0ccbba02c141b2fc8d869d58694b02119588 (patch) | |
tree | 4f0696f0285e412a5c6a1916b9de75c3eb5cfec5 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 75d36dc5a77ba3759eef15aeca925a1400504c89 (diff) | |
download | llvm-764e0ccbba02c141b2fc8d869d58694b02119588.zip llvm-764e0ccbba02c141b2fc8d869d58694b02119588.tar.gz llvm-764e0ccbba02c141b2fc8d869d58694b02119588.tar.bz2 |
[flang][OpenMP]Replace assert with if-condition (#139559)
If a symbol is not declared, check-omp-structure hits an assert. It
should be safe to treat undeclared symbols as "not from a block", as
they would have to be declared to be in a block...
Adding simple test to confirm it gives error messages, not crashing.
This should fix issue #131655 (there is already a check for symbol being
not null in the code identified in the ticket).
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions