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)
commit3ea39890d11480b9e357870d3c7ae63a011be4be
tree7ee3eeecfd22451977581f679cfadee6ca574073
parente7c9c44387900428889f7a4117012171bccaad3f
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220205 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Function.cpp