mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 14:12:11 +00:00
for completeness, allow undef also.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112351 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b188a3789e
commit
157d4ead36
@ -1381,6 +1381,9 @@ static unsigned getTypeSizeIndex(unsigned Value, const Type *Ty) {
|
||||
static bool CollectInsertionElements(Value *V, unsigned ElementIndex,
|
||||
SmallVectorImpl<Value*> &Elements,
|
||||
const Type *VecEltTy) {
|
||||
// Undef values never contribute useful bits to the result.
|
||||
if (isa<UndefValue>(V)) return true;
|
||||
|
||||
// If we got down to a value of the right type, we win, try inserting into the
|
||||
// right element.
|
||||
if (V->getType() == VecEltTy) {
|
||||
|
Loading…
Reference in New Issue
Block a user