[SelectionDAG] Handle trapping aggregate (PR49839)
authorNikita Popov <npopov@redhat.com>
Mon, 13 Jun 2022 13:05:13 +0000 (15:05 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 13 Jun 2022 13:06:53 +0000 (15:06 +0200)
commitb9a7dea9171416a998e4fa3333fb9f76baa167b8
treef0fc31e0d111391c2f6f40b0c4a10d19d893fde6
parent483a4b22267b813bbda03d805034df45d0a87c21
[SelectionDAG] Handle trapping aggregate (PR49839)

Call canTrap() on Constant to account for trapping
ConstantAggregate.
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
llvm/test/CodeGen/X86/pr49839-trapping-aggregate.ll