From a3cc1835adc27eec0cb3320faffe2bf1ca08951d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 19 Jan 2005 16:16:35 +0000 Subject: [PATCH] Fix 'raise' to work with packed types. Patch by Morten Ofstad. llvm-svn: 19693 --- llvm/lib/Transforms/LevelRaise.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/LevelRaise.cpp b/llvm/lib/Transforms/LevelRaise.cpp index 7f8c13125c8a..ebd9829b4c05 100644 --- a/llvm/lib/Transforms/LevelRaise.cpp +++ b/llvm/lib/Transforms/LevelRaise.cpp @@ -382,7 +382,7 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { // ElTy = CurSTy->getElementType(0); } else { - ElTy = cast(CurCTy)->getElementType(); + ElTy = cast(CurCTy)->getElementType(); } // Insert a zero to index through this type...