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

Chris Lattner lattner at cs.uiuc.edu
Wed Jan 19 08:16:50 PST 2005



Changes in directory llvm/lib/Transforms:

LevelRaise.cpp updated: 1.103 -> 1.104
---
Log message:

Fix 'raise' to work with packed types.  Patch by Morten Ofstad.


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Transforms/LevelRaise.cpp
diff -u llvm/lib/Transforms/LevelRaise.cpp:1.103 llvm/lib/Transforms/LevelRaise.cpp:1.104
--- llvm/lib/Transforms/LevelRaise.cpp:1.103	Sun Sep 19 23:43:57 2004
+++ llvm/lib/Transforms/LevelRaise.cpp	Wed Jan 19 10:16:35 2005
@@ -382,7 +382,7 @@
               //
               ElTy = CurSTy->getElementType(0);
             } else {
-              ElTy = cast<ArrayType>(CurCTy)->getElementType();
+              ElTy = cast<SequentialType>(CurCTy)->getElementType();
             }
 
             // Insert a zero to index through this type...






More information about the llvm-commits mailing list