[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Apr 20 13:49:02 PDT 2006
Changes in directory llvm/lib/Transforms/Scalar:
ScalarReplAggregates.cpp updated: 1.38 -> 1.39
---
Log message:
Fix Transforms/ScalarRepl/2006-04-20-PromoteCrash.ll
---
Diffs of the changes: (+1 -1)
ScalarReplAggregates.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff -u llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.38 llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.39
--- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.38 Fri Apr 14 16:42:41 2006
+++ llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp Thu Apr 20 15:48:50 2006
@@ -143,7 +143,7 @@
// simple scalar value that can be mem2reg'd into a register value.
bool IsNotTrivial = false;
if (const Type *ActualType = CanConvertToScalar(AI, IsNotTrivial))
- if (IsNotTrivial) {
+ if (IsNotTrivial && ActualType != Type::VoidTy) {
ConvertToScalar(AI, ActualType);
Changed = true;
continue;
More information about the llvm-commits
mailing list