parent
1ca6ce5a22
commit
34d9a17778
|
@ -787,6 +787,9 @@ Constant *llvm::ConstantFoldShuffleVectorInstruction(Constant *V1,
|
|||
// Undefined shuffle mask -> undefined value.
|
||||
if (isa<UndefValue>(Mask)) return UndefValue::get(V1->getType());
|
||||
|
||||
// Don't break the bitcode reader hack.
|
||||
if (isa<ConstantExpr>(Mask)) return 0;
|
||||
|
||||
unsigned MaskNumElts = Mask->getType()->getVectorNumElements();
|
||||
unsigned SrcNumElts = V1->getType()->getVectorNumElements();
|
||||
Type *EltTy = V1->getType()->getVectorElementType();
|
||||
|
|
Loading…
Reference in New Issue