summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitc464416107414ec97450da6e5c7af2fc4c8af43d (patch)
tree17ee29998fa5ea14f0decfc8e71b6aaba973adf8 /llvm/lib/VMCore/Function.cpp
parent15d4169e7e730220f978fb8f2061ba8579924a3a (diff)
downloadbcm5719-llvm-c464416107414ec97450da6e5c7af2fc4c8af43d.tar.gz
bcm5719-llvm-c464416107414ec97450da6e5c7af2fc4c8af43d.zip
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. llvm-svn: 157536
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r--llvm/lib/VMCore/Function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index 0babc55eb90..32e1a2e7529 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/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];
OpenPOWER on IntegriCloud