From 85e01df73d9051ad9468cc835fabbdf40b77e5f6 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Thu, 22 Jul 2010 11:48:35 +0000 Subject: [PATCH] pass dereferenced iterator to dyn_cast git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109099 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/PartialInlining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/IPO/PartialInlining.cpp b/lib/Transforms/IPO/PartialInlining.cpp index d3c4a50bc0a..e4a8fc58c2e 100644 --- a/lib/Transforms/IPO/PartialInlining.cpp +++ b/lib/Transforms/IPO/PartialInlining.cpp @@ -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(UI)) + if (Instruction* I = dyn_cast(*UI)) if (I->getParent()->getParent() == currFunc) { recursive = true; break; -- 2.34.1