[llvm-commits] [llvm] r117061 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Duncan Sands
baldrick at free.fr
Fri Oct 22 06:55:14 PDT 2010
Hi Michael, how about a testcase?
> + // See if any floating point values are being passed to this function. This is
> + // used to emit an undefined reference to fltused on Windows.
> + const FunctionType *FT =
> + cast<FunctionType>(I.getCalledValue()->getType()->getContainedType(0));
how about casting to PointerType and using getElementType instead. Actually,
I'm surprised that there isn't a convenience function for getting the type of
the callee as a FunctionType - want to add one to CallInst?
Finally - what if this is an invoke rather than a normal call?
Ciao,
Duncan.
More information about the llvm-commits
mailing list