search for: 024e404f

Displaying 2 results from an estimated 2 matches for "024e404f".

2019 Mar 09
2
Cast a function parameter to GEP
Hi all, I'm still working on the Interpreter class and I would like to understand why an operand cannot be cast to GetElementPtrInst. My code is something like: void MyInterpreter::visitCallInst(CallInst& I) { for(int i = 0; i < I.getNumArgOperands(); i++) { operand = I.getOperand(i); if(GetElementPtrInst* CI = dyn_cast<GetElementPtrInst>(operand)) {
2019 Mar 09
2
Cast a function parameter to GEP
...to solve it? > > Broadly true, but the same would apply to any global, not just ones > declared constant. > > Cheers. > > Tim. > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190309/024e404f/attachment.html>