[llvm-commits] [llvm-gcc-4.2] r45185 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Duncan Sands
duncan.sands at math.u-psud.fr
Tue Dec 18 23:13:54 PST 2007
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?
Thanks,
D.
More information about the llvm-commits
mailing list