[llvm-commits] [llvm-gcc-4.2] r45185 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Dale Johannesen
dalej at apple.com
Wed Dec 19 10:11:24 PST 2007
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.
More information about the llvm-commits
mailing list