Simplify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Lewycky 2009-11-10 07:00:43 +00:00
parent 58571d663c
commit 7cef178176

View File

@ -121,9 +121,7 @@ static unsigned getStoreSize(Instruction *I, const TargetData *TD) {
assert(doesClobberMemory(I));
if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
if (!TD) return -1u;
const PointerType *PTy =
cast<PointerType>(SI->getPointerOperand()->getType());
return TD->getTypeStoreSize(PTy->getElementType());
return TD->getTypeStoreSize(SI->getOperand(0)->getType());
}
Value *Len;