search for: 5ea65e1d

Displaying 2 results from an estimated 2 matches for "5ea65e1d".

2009 Oct 20
0
[LLVMdev] Dereference PointerType?
...Type()); and, Type *allocated_type = ptr_type->dereference(); should probably be, const Type *allocated_type = ptr_type->dereference(); Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091020/5ea65e1d/attachment.html>
2009 Oct 20
3
[LLVMdev] Dereference PointerType?
Hello, I'm wondering if it's possible to dereference a PointerType. I have an AllocaInst and although I can find the number of elements allocated, (using Instruction::getOperand(0)), I can't find a way to get the size of each element. What I'd like to do is: AllocaInst *alloca; PointerType *ptr_type = dynamic_cast<PointerType*>(alloca); assert(ptr_type); Type