aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSergio Afonso <safonsof@amd.com>2024-10-29 17:05:12 +0000
committerGitHub <noreply@github.com>2024-10-29 17:05:12 +0000
commita1f2fb6078bbed8034ce28eafc3518268e25f2ff (patch)
tree58e9ecc2b973a5c90caf2826c7edad34499e87ff /flang/lib/Frontend/CompilerInvocation.cpp
parentb05fec97d59898a63a3e303122bbc7fc5e29ced8 (diff)
downloadllvm-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