mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Update GEP constructors to use an iterator interface to fix
GLIBCXX_DEBUG issues. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -235,7 +235,7 @@ void LowerPacked::visitLoadInst(LoadInst& LI)
|
||||
|
||||
// Get the pointer
|
||||
Value* val = new GetElementPtrInst(array,
|
||||
&Idx[0], Idx.size(),
|
||||
Idx.begin(), Idx.end(),
|
||||
LI.getName() +
|
||||
".ge." + utostr(i),
|
||||
&LI);
|
||||
@@ -333,7 +333,7 @@ void LowerPacked::visitStoreInst(StoreInst& SI)
|
||||
// Generate the indices for getelementptr
|
||||
Idx[1] = ConstantInt::get(Type::Int32Ty,i);
|
||||
Value* val = new GetElementPtrInst(array,
|
||||
&Idx[0], Idx.size(),
|
||||
Idx.begin(), Idx.end(),
|
||||
"store.ge." +
|
||||
utostr(i) + ".",
|
||||
&SI);
|
||||
|
||||
Reference in New Issue
Block a user