[llvm-commits] [llvm] r56609 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Richard Pennington
rich at pennware.com
Thu Sep 25 09:15:19 PDT 2008
Author: rich
Date: Thu Sep 25 11:15:10 2008
New Revision: 56609
URL: http://llvm.org/viewvc/llvm-project?rev=56609&view=rev
Log:
bug 2812: Segmentation fault on a big emdiam processor.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=56609&r1=56608&r2=56609&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Thu Sep 25 11:15:10 2008
@@ -2481,7 +2481,7 @@
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);
}
More information about the llvm-commits
mailing list