aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKai Luo <lkail@cn.ibm.com>2024-01-10 09:23:30 +0800
committerGitHub <noreply@github.com>2024-01-10 09:23:30 +0800
commit6615581526f62a00833b2d60cc31f7f12497b5ff (patch)
tree085c8fb1fc67daa5f39fcdb1c6d3583bd5d4baac /flang/lib/Frontend/CompilerInvocation.cpp
parentea3c7b3397f8de8e885ea7cd1ed5138ec4a72d50 (diff)
downloadllvm-6615581526f62a00833b2d60cc31f7f12497b5ff.zip
llvm-6615581526f62a00833b2d60cc31f7f12497b5ff.tar.gz
llvm-6615581526f62a00833b2d60cc31f7f12497b5ff.tar.bz2
[PowerPC] Make verifier happy when lowering `llvm.trap` (#77266)
`llvm.trap` is lowered to `PPC::TRAP` and `PPC::TRAP` is set as terminator. Verifier complains about terminator should not lie in the middle of an MBB. See #77095. Fix it by removing `isTerminator` and `isBarrier` and then set `isTrap` which was introduced by https://reviews.llvm.org/D48836# and is being used by X86 and AArch64. `PPC::TRAP` is not a hardware memory barrier and `llvm.trap` doesn't indicate a memory barrier either.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions