mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
mass elimination of reliance on automatic iterator dereferencing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109103 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -187,7 +187,7 @@ bool SRETPromotion::isSafeToUpdateAllCallers(Function *F) {
|
||||
return false;
|
||||
for (Value::use_iterator GEPI = GEP->use_begin(), GEPE = GEP->use_end();
|
||||
GEPI != GEPE; ++GEPI)
|
||||
if (!isa<LoadInst>(GEPI))
|
||||
if (!isa<LoadInst>(*GEPI))
|
||||
return false;
|
||||
}
|
||||
// Any other FirstArg users make this function unsuitable for sret
|
||||
|
||||
Reference in New Issue
Block a user