forked from OSchip/llvm-project
parent
c7ed09378e
commit
328e91bbe1
|
@ -1605,7 +1605,7 @@ void SROA::RewriteStoreUserOfWholeAlloca(StoreInst *SI, AllocaInst *AI,
|
||||||
if (ElementSizeBits != AllocaSizeBits)
|
if (ElementSizeBits != AllocaSizeBits)
|
||||||
EltVal = new TruncInst(EltVal,
|
EltVal = new TruncInst(EltVal,
|
||||||
IntegerType::get(SI->getContext(),
|
IntegerType::get(SI->getContext(),
|
||||||
ElementSizeBits),"",SI);
|
ElementSizeBits), "", SI);
|
||||||
Value *DestField = NewElts[i];
|
Value *DestField = NewElts[i];
|
||||||
if (EltVal->getType() == ArrayEltTy) {
|
if (EltVal->getType() == ArrayEltTy) {
|
||||||
// Storing to an integer field of this size, just do it.
|
// Storing to an integer field of this size, just do it.
|
||||||
|
|
Loading…
Reference in New Issue