1
0
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:
Gabor Greif 2010-07-22 11:48:35 +00:00
parent 87ef691878
commit 582eb39c11

View File

@ -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;