[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp
Anton Korobeynikov
asl at math.spbu.ru
Thu Feb 1 00:40:22 PST 2007
Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.319 -> 1.320
---
Log message:
Fixed uninitialized stuff inside LegalizeDAG. Fortunately, the only
affected part is codegen of "memove" inside x86 backend. This fixes
PR1144: http://llvm.org/PR1144
---
Diffs of the changes: (+4 -0)
X86ISelLowering.cpp | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.319 llvm/lib/Target/X86/X86ISelLowering.cpp:1.320
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.319 Mon Jan 29 16:58:52 2007
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Thu Feb 1 02:39:52 2007
@@ -777,6 +777,10 @@
}
}
+ // Sanity check: we haven't seen NumSRetBytes > 4
+ assert((NumSRetBytes<=4) &&
+ "Too much space for struct-return pointer requested");
+
if (!MemOpChains.empty())
Chain = DAG.getNode(ISD::TokenFactor, MVT::Other,
&MemOpChains[0], MemOpChains.size());
More information about the llvm-commits
mailing list