search for: interesting_function

Displaying 2 results from an estimated 2 matches for "interesting_function".

2009 Apr 21
0
[LLVMdev] Iterating over all uses of a Function
Hi Mikhail, Can you please attach a simple .bc file that is subject to this problem? Anthony On Apr 21, 2009, at 7:33 AM, Mikhail Glushenkov wrote: > Hi, > > I try to iterate over all uses of a Function with the following > code (simplified): > > for (Value::use_iterator UI = F->use_begin(), UE = F->use_end(); > UI != UE; ++UI) { > >
2009 Apr 21
4
[LLVMdev] Iterating over all uses of a Function
Hi, I try to iterate over all uses of a Function with the following code (simplified): for (Value::use_iterator UI = F->use_begin(), UE = F->use_end(); UI != UE; ++UI) { if (CallInst* I = dyn_cast<CallInst>(*UI)) { // do something interesting } } This works on Linux, but on Windows the dyn_cast fails, even though the only use of F in that