aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/SmallVectorTest.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2022-08-05 11:19:37 +0100
committerDavid Green <david.green@arm.com>2022-08-05 11:19:36 +0100
commitb2de84633a0a262b894e7cf87d29b167787aa2d6 (patch)
treed4087162c749f27988daba3222b6ec83879bf478 /llvm/unittests/ADT/SmallVectorTest.cpp
parentc401dbde71fdfdbdb0e77df54429408bab903991 (diff)
downloadllvm-b2de84633a0a262b894e7cf87d29b167787aa2d6.zip
llvm-b2de84633a0a262b894e7cf87d29b167787aa2d6.tar.gz
llvm-b2de84633a0a262b894e7cf87d29b167787aa2d6.tar.bz2
[ConstProp] Don't fallthorugh for poison constants on vctp and active_lane_mask.
Given a poison constant as input, the dyn_cast to a ConstantInt would fail so we would fall through to the generic code that attempts to fold each element of the input vectors. The inputs to these intrinsics are not vectors though, leading to a compile time crash. Instead bail out properly for poison values by returning nullptr. This doesn't try to define what poison means for these intrinsics. Fixes #56945
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
0 files changed, 0 insertions, 0 deletions