aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-06-13 12:32:22 +0200
committerNikita Popov <npopov@redhat.com>2022-06-13 12:35:17 +0200
commit7e64a29e58382b2616096d64a39c38075e51ebc3 (patch)
tree6adc96b0e5c26fa6879aad7ca36d14a39515d3f9 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parentd59809de16c36a7c955b305cfd2214614b2f51d6 (diff)
downloadllvm-7e64a29e58382b2616096d64a39c38075e51ebc3.zip
llvm-7e64a29e58382b2616096d64a39c38075e51ebc3.tar.gz
llvm-7e64a29e58382b2616096d64a39c38075e51ebc3.tar.bz2
[InstSimplify][IR] Handle trapping constant aggregate (PR49839)
Unfortunately, it's not just constant expressions that can trap, we might also have a trapping constant expression nested inside a constant aggregate. Perform the check during phi folding on Constant rather than ConstantExpr, and extend the Constant::mayTrap() implementation to also recursive into ConstantAggregates, not just ConstantExprs. Fixes https://github.com/llvm/llvm-project/issues/49839.
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions