summaryrefslogtreecommitdiff
path: root/utils/TableGen/IntrinsicEmitter.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-07-14 17:45:39 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-07-14 17:45:39 +0000
commiteb9a85f09e18b3fe88499710404b38d3a9128f62 (patch)
treed4c525dba91c583de634db5d0b1e2160194db37f /utils/TableGen/IntrinsicEmitter.cpp
parent61afc8820f2bc85f7b7158850a0250f9d8c1ebaa (diff)
downloadllvm-eb9a85f09e18b3fe88499710404b38d3a9128f62.tar.gz
llvm-eb9a85f09e18b3fe88499710404b38d3a9128f62.tar.bz2
llvm-eb9a85f09e18b3fe88499710404b38d3a9128f62.tar.xz
Change Intrinsic::getDeclaration and friends to take an ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/IntrinsicEmitter.cpp')
-rw-r--r--utils/TableGen/IntrinsicEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp
index 7a53138c70..e5e7cea120 100644
--- a/utils/TableGen/IntrinsicEmitter.cpp
+++ b/utils/TableGen/IntrinsicEmitter.cpp
@@ -259,7 +259,7 @@ static void EmitTypeGenerate(raw_ostream &OS, const Record *ArgType,
} else if (VT == MVT::iPTRAny) {
// Make sure the user has passed us an argument type to overload. If not,
// treat it as an ordinary (not overloaded) intrinsic.
- OS << "(" << ArgNo << " < numTys) ? Tys[" << ArgNo
+ OS << "(" << ArgNo << " < Tys.size()) ? Tys[" << ArgNo
<< "] : PointerType::getUnqual(";
EmitTypeGenerate(OS, ArgType->getValueAsDef("ElTy"), ArgNo);
OS << ")";