mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
pass dereferenced iterator to dyn_cast
llvm-svn: 109099
This commit is contained in:
parent
87ef691878
commit
582eb39c11
@ -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