Fix Intrinsic::getType not working with vararg
authorSteven Wu <stevenwu@apple.com>
Mon, 20 Oct 2014 15:47:24 +0000 (15:47 +0000)
committerSteven Wu <stevenwu@apple.com>
Mon, 20 Oct 2014 15:47:24 +0000 (15:47 +0000)
commitd05affcc8167627314a5ac6395aac7746927992f
treefb2deff6dbc7b0e499b58566b8e121664e2beb15
parent6672f37ed2b3b1ab1bfc4f85619e454578481f39
Fix Intrinsic::getType not working with vararg

VarArg Intrinsic functions are encoded with "void" type as the last
argument. Now Intrinsic::getType can correctly return all the intrinsic
function type.

llvm-svn: 220205
llvm/lib/IR/Function.cpp