forked from OSchip/llvm-project
parent
7bd3d1c49b
commit
abffc991dc
|
|
@ -432,7 +432,7 @@ SDValue ExpandUnalignedStore(StoreSDNode *ST, SelectionDAG &DAG,
|
|||
SDValue Result = DAG.getNode(ISD::BITCAST, dl, intVT, Val);
|
||||
return DAG.getStore(Chain, dl, Result, Ptr, ST->getPointerInfo(),
|
||||
ST->isVolatile(), ST->isNonTemporal(), Alignment);
|
||||
} else {
|
||||
}
|
||||
// Do a (aligned) store to a stack slot, then copy from the stack slot
|
||||
// to the final destination using (unaligned) integer loads and stores.
|
||||
EVT StoredVT = ST->getMemoryVT();
|
||||
|
|
@ -494,7 +494,6 @@ SDValue ExpandUnalignedStore(StoreSDNode *ST, SelectionDAG &DAG,
|
|||
return DAG.getNode(ISD::TokenFactor, dl, MVT::Other, &Stores[0],
|
||||
Stores.size());
|
||||
}
|
||||
}
|
||||
assert(ST->getMemoryVT().isInteger() &&
|
||||
!ST->getMemoryVT().isVector() &&
|
||||
"Unaligned store of unknown type.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue