diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-05 20:07:06 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-05 20:07:06 +0000 |
commit | 11acaa374cdcebb161bf0de5f244265d78a749c1 (patch) | |
tree | 6150e8c34a88c68bfaa4041f914b3d1628015946 /lib/VMCore/Type.cpp | |
parent | 13be48701d09891e7945f9522d622053e1b61d1a (diff) | |
download | llvm-11acaa374cdcebb161bf0de5f244265d78a749c1.tar.gz llvm-11acaa374cdcebb161bf0de5f244265d78a749c1.tar.bz2 llvm-11acaa374cdcebb161bf0de5f244265d78a749c1.tar.xz |
Convert a ton of simple integer type equality tests to the new predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r-- | lib/VMCore/Type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 20945be79d..044de4fb39 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -285,7 +285,7 @@ std::string Type::getDescription() const { bool StructType::indexValid(const Value *V) const { // Structure indexes require 32-bit integer constants. - if (V->getType() == Type::getInt32Ty(V->getContext())) + if (V->getType()->isInteger(32)) if (const ConstantInt *CU = dyn_cast<ConstantInt>(V)) return indexValid(CU->getZExtValue()); return false; |