From: Nadav Rotem Date: Sun, 26 Feb 2012 12:00:22 +0000 (+0000) Subject: Fix a bug in the code that checks if a store value is a vector of i1s X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2e851a9abf781bc5feef9be98f794dcb1caab548;p=oota-llvm.git Fix a bug in the code that checks if a store value is a vector of i1s git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151487 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-stress/llvm-stress.cpp b/tools/llvm-stress/llvm-stress.cpp index db35688aacb..e671c0c1949 100644 --- a/tools/llvm-stress/llvm-stress.cpp +++ b/tools/llvm-stress/llvm-stress.cpp @@ -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());