mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-01 10:57:21 +00:00
bug 2812: Segmentation fault on a big emdiam processor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56609 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2cc3aa4459
commit
4b052dc63d
@ -2481,7 +2481,7 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
||||
ExpandOp(ST->getValue(), Lo, Hi);
|
||||
IncrementSize = Hi.getNode() ? Hi.getValueType().getSizeInBits()/8 : 0;
|
||||
|
||||
if (TLI.isBigEndian())
|
||||
if (Hi.getNode() && TLI.isBigEndian())
|
||||
std::swap(Lo, Hi);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user