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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19693 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp
index 7f8c131..ebd9829 100644
--- a/lib/Transforms/LevelRaise.cpp
+++ b/lib/Transforms/LevelRaise.cpp
@@ -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...