bug 2812: Segmentation fault on a big emdiam processor.

llvm-svn: 56609
This commit is contained in:
Richard Pennington 2008-09-25 16:15:10 +00:00
parent 3691d507c4
commit 4b35e64504
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}