mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Changes to fix up the inst_iterator to pass to boost iterator checks. This
patch was graciously contributed by Vladimir Prus. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -83,15 +83,15 @@ bool AAEval::runOnFunction(Function &F) {
|
||||
Pointers.insert(I);
|
||||
|
||||
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I) {
|
||||
if (isa<PointerType>((*I)->getType())) // Add all pointer instructions
|
||||
Pointers.insert(*I);
|
||||
for (User::op_iterator OI = (*I)->op_begin(); OI != (*I)->op_end(); ++OI)
|
||||
if (isa<PointerType>(I->getType())) // Add all pointer instructions
|
||||
Pointers.insert(&*I);
|
||||
for (User::op_iterator OI = (*I).op_begin(); OI != (*I).op_end(); ++OI)
|
||||
if (isa<PointerType>((*OI)->getType()))
|
||||
Pointers.insert(*OI);
|
||||
}
|
||||
|
||||
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I) {
|
||||
CallSite CS = CallSite::get(*I);
|
||||
CallSite CS = CallSite::get(&*I);
|
||||
if (CS.getInstruction()) CallSites.insert(CS);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user