[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp

Chris Lattner sabre at nondot.org
Mon Dec 11 20:24:56 PST 2006



Changes in directory llvm/lib/Transforms/Scalar:

ScalarReplAggregates.cpp updated: 1.55 -> 1.56
---
Log message:

Patch for PR1045: http://llvm.org/PR1045  and Transforms/ScalarRepl/2006-12-11-SROA-Crash.ll


---
Diffs of the changes:  (+2 -0)

 ScalarReplAggregates.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff -u llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.55 llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.56
--- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.55	Sun Dec 10 19:17:00 2006
+++ llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp	Mon Dec 11 22:24:41 2006
@@ -433,6 +433,8 @@
   const PackedType *PTy;
   if (Accum == Type::VoidTy || In == Accum) {
     Accum = In;
+  } else if (In == Type::VoidTy) {
+    // Noop.
   } else if (In->isIntegral() && Accum->isIntegral()) {   // integer union.
     // Otherwise pick whichever type is larger.
     if (In->getTypeID() > Accum->getTypeID())






More information about the llvm-commits mailing list