summaryrefslogtreecommitdiffstats
path: root/llvm/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
commite6e1933f31f5e75989e5f4871f7292e2bd1a007f (patch)
tree9ab69e0c5f28a864838d25785eb6b8753a288fda /llvm/utils/TableGen/IntrinsicEmitter.cpp
parent512148fbeb54aab30d2ee4731add30b909cf7bb4 (diff)
downloadbcm5719-llvm-e6e1933f31f5e75989e5f4871f7292e2bd1a007f.tar.gz
bcm5719-llvm-e6e1933f31f5e75989e5f4871f7292e2bd1a007f.zip
Change Intrinsic::getDeclaration and friends to take an ArrayRef.
llvm-svn: 135154
Diffstat (limited to 'llvm/utils/TableGen/IntrinsicEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/IntrinsicEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp
index 7a53138c701..e5e7cea1200 100644
--- a/llvm/utils/TableGen/IntrinsicEmitter.cpp
+++ b/llvm/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 << ")";
OpenPOWER on IntegriCloud