search for: use_i

Displaying 1 result from an estimated 1 matches for "use_i".

Did you mean: fuse_i
2016 Jun 30
1
Use iterator misunderstanding?
...call = call noalias i8* @malloc(i64 10) #2 and store i8* %call, i8** %ptr, align 8 But I only get the first one. Is it normal? What should I do to get both? Here the piece of code I used to iterate: CallInst *CI = ...The call to malloc... errs() << " Value use:\n"; for(Value::use_iterator i = CI->use_begin(), e = CI->use_end(); i != e; ++i) { Use *use_i = &*i; if(Instruction *I = dyn_cast<Instruction>(use_i)) { errs() << " instruction: " << *I << "\n"; } } And I get this output: Value use...