Verifier: Fix assert when verifying non-pointer byval or preallocated
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 20 Nov 2020 23:14:28 +0000 (18:14 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 21 Nov 2020 01:08:43 +0000 (20:08 -0500)
commit650fbd569a34960944d20d02b578e9be860453a7
treefbd3e60c0c3c677200b1dcb3db8d52f8fc0f5565
parent1d1234b2a4286eebb89ea5e9796098f308c553d2
Verifier: Fix assert when verifying non-pointer byval or preallocated

This would fail on a cast<PointerType> when verifying the attribute if
these attributes were incorrectly used with a non-pointer type.
llvm/lib/IR/Verifier.cpp
llvm/test/Verifier/byval-1.ll
llvm/test/Verifier/preallocated-invalid.ll
llvm/test/Verifier/sret.ll