mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-19 12:33:51 +00:00
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
58571d663c
commit
7cef178176
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user