mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
fix ScalarRepl/2007-03-19-CanonicalizeMemcpy.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -661,7 +661,8 @@ void SROA::CanonicalizeAllocaUsers(AllocationInst *AI) {
|
|||||||
// up.
|
// up.
|
||||||
for (Value::use_iterator UI = AI->use_begin(), E = AI->use_end();
|
for (Value::use_iterator UI = AI->use_begin(), E = AI->use_end();
|
||||||
UI != E; ) {
|
UI != E; ) {
|
||||||
GetElementPtrInst *GEPI = cast<GetElementPtrInst>(*UI++);
|
GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(*UI++);
|
||||||
|
if (!GEPI) continue;
|
||||||
gep_type_iterator I = gep_type_begin(GEPI);
|
gep_type_iterator I = gep_type_begin(GEPI);
|
||||||
++I;
|
++I;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user