diff options
author | Sergio Afonso <safonsof@amd.com> | 2024-10-29 17:05:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 17:05:12 +0000 |
commit | a1f2fb6078bbed8034ce28eafc3518268e25f2ff (patch) | |
tree | 58e9ecc2b973a5c90caf2826c7edad34499e87ff /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | b05fec97d59898a63a3e303122bbc7fc5e29ced8 (diff) | |
download | llvm-a1f2fb6078bbed8034ce28eafc3518268e25f2ff.zip llvm-a1f2fb6078bbed8034ce28eafc3518268e25f2ff.tar.gz llvm-a1f2fb6078bbed8034ce28eafc3518268e25f2ff.tar.bz2 |
[MLIR][OpenMP] Prevent composite omp.simd related crashes (#113680)
This patch updates the translation of `omp.wsloop` with a nested
`omp.simd` to prevent uses of block arguments defined by the latter from
triggering null pointer dereferences.
This happens because the inner `omp.simd` operation representing
composite `do simd` constructs is currently skipped and not translated,
but this results in block arguments defined by it not being mapped to an
LLVM value. The proposed solution is to map these block arguments to the
LLVM value associated to the corresponding operand, which is defined
above.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions