mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Convert GetElementPtrInst to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135904 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -58,8 +58,7 @@ Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) {
|
||||
Idx[0] = NullIdx;
|
||||
Idx[1] = NullIdx;
|
||||
Instruction *GEP =
|
||||
GetElementPtrInst::CreateInBounds(New, Idx, Idx + 2,
|
||||
New->getName()+".sub");
|
||||
GetElementPtrInst::CreateInBounds(New, Idx, New->getName()+".sub");
|
||||
InsertNewInstBefore(GEP, *It);
|
||||
|
||||
// Now make everything use the getelementptr instead of the original
|
||||
|
||||
Reference in New Issue
Block a user