aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-05-27 16:39:08 +0000
committerChris Lattner <sabre@nondot.org>2012-05-27 16:39:08 +0000
commitb4654c1c490275370ca706eed2d85cc232b21155 (patch)
treefccc7c36ab13b6bf2e0a7258f3efc8df38a352b2 /lib/VMCore/Function.cpp
parente3f75f8797b9752bfe7923bff9a87a15a6fe3552 (diff)
enhance the intrinsic info table to encode what *kind* of Any argument
it is (at the cost of 45 bytes of extra table space) so that the verifier can start using it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r--lib/VMCore/Function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index 0babc55eb9..32e1a2e752 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -398,7 +398,7 @@ static Type *DecodeFixedType(unsigned &NextElt, ArrayRef<unsigned char> Infos,
case IIT_ARG:
case IIT_EXTEND_VEC_ARG:
case IIT_TRUNC_VEC_ARG: {
- unsigned ArgNo = NextElt == Infos.size() ? 0 : Infos[NextElt++];
+ unsigned ArgNo = (NextElt == Infos.size() ? 0 : Infos[NextElt++]) >> 2;
assert(ArgNo < Tys.size() && "Not enough types specified!");
Type *T = Tys[ArgNo];