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

llvm-svn: 19693
This commit is contained in:
Chris Lattner 2005-01-19 16:16:35 +00:00
parent de87d146ab
commit a3cc1835ad
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
// //
ElTy = CurSTy->getElementType(0); ElTy = CurSTy->getElementType(0);
} else { } else {
ElTy = cast<ArrayType>(CurCTy)->getElementType(); ElTy = cast<SequentialType>(CurCTy)->getElementType();
} }
// Insert a zero to index through this type... // Insert a zero to index through this type...