mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +00:00
Change conditional to assert. NFC.
This code was breaking from the case statement if the getStoreSizeInBits() value was not a multiple of 0. Given that the implementation returns getStoreSize() * 8, it can only be a multiple of 8. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242255 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1828,9 +1828,8 @@ SDValue XCoreTargetLowering::PerformDAGCombine(SDNode *N,
|
|||||||
SDValue Chain = ST->getChain();
|
SDValue Chain = ST->getChain();
|
||||||
|
|
||||||
unsigned StoreBits = ST->getMemoryVT().getStoreSizeInBits();
|
unsigned StoreBits = ST->getMemoryVT().getStoreSizeInBits();
|
||||||
if (StoreBits % 8) {
|
assert((StoreBits % 8) == 0 &&
|
||||||
break;
|
"Store size in bits must be a multiple of 8");
|
||||||
}
|
|
||||||
unsigned ABIAlignment = DAG.getDataLayout().getABITypeAlignment(
|
unsigned ABIAlignment = DAG.getDataLayout().getABITypeAlignment(
|
||||||
ST->getMemoryVT().getTypeForEVT(*DCI.DAG.getContext()));
|
ST->getMemoryVT().getTypeForEVT(*DCI.DAG.getContext()));
|
||||||
unsigned Alignment = ST->getAlignment();
|
unsigned Alignment = ST->getAlignment();
|
||||||
|
Reference in New Issue
Block a user