Fix a bug in the code that checks if a store value is a vector of i1s

llvm-svn: 151487
This commit is contained in:
Nadav Rotem 2012-02-26 12:00:22 +00:00
parent 8e1c932ffb
commit 63ff91d22a
1 changed files with 2 additions and 1 deletions

View File

@ -224,10 +224,11 @@ struct StoreModifier: public Modifier {
Value *Ptr = getRandomPointerValue();
Type *Tp = Ptr->getType();
Value *Val = getRandomValue(Tp->getContainedType(0));
Type *ValTy = Val->getType();
// Do not store vectors of i1s because they are unsupported
//by the codegen.
if (Tp->isVectorTy() && Tp->getScalarSizeInBits() == 1)
if (ValTy->isVectorTy() && (ValTy->getScalarSizeInBits() == 1))
return;
new StoreInst(Val, Ptr, BB->getTerminator());