mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
pass dereferenced iterator to dyn_cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109099 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20361b9d4d
commit
85e01df73d
@ -160,7 +160,7 @@ bool PartialInliner::runOnModule(Module& M) {
|
||||
bool recursive = false;
|
||||
for (Function::use_iterator UI = currFunc->use_begin(),
|
||||
UE = currFunc->use_end(); UI != UE; ++UI)
|
||||
if (Instruction* I = dyn_cast<Instruction>(UI))
|
||||
if (Instruction* I = dyn_cast<Instruction>(*UI))
|
||||
if (I->getParent()->getParent() == currFunc) {
|
||||
recursive = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user