On Dec 18, 2007, at 11:13 PM, Duncan Sands wrote: > Hi Dale, > >> assert(TREE_TYPE (TREE_OPERAND (exp, 0)) && >> - TREE_CODE(TREE_TYPE (TREE_OPERAND (exp, 0))) == >> POINTER_TYPE >> + (TREE_CODE(TREE_TYPE (TREE_OPERAND (exp, 0))) == >> POINTER_TYPE || >> + TREE_CODE(TREE_TYPE (TREE_OPERAND (exp, 0))) == >> REFERENCE_TYPE) >> && "Not calling a function pointer?"); >> tree function_type = TREE_TYPE(TREE_TYPE (TREE_OPERAND (exp, 0))); > > for a reference type will function_type get the type of the function?
Yes. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits