mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
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
This commit is contained in:
parent
4053b1e30b
commit
7d719c3cd8
@ -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...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user