diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-03 01:05:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-03 01:05:48 +0000 |
commit | ce8a14915d2971039b576e03a32e0ba7c421dba7 (patch) | |
tree | 148593a8f58b5bbac0171ded5dcf3e9e60b2eee5 /include/llvm/ConstantHandling.h | |
parent | 625ea21205d1fb6f175e22477f55dd485b7c65c4 (diff) |
- Renamed Type::isIntegral() to Type::isInteger()
- Added new method Type::isIntegral() that is the same as isInteger, but
also accepts bool.
SCVS: ----------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ConstantHandling.h')
-rw-r--r-- | include/llvm/ConstantHandling.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ConstantHandling.h b/include/llvm/ConstantHandling.h index cd10f9d0c8..546b37e605 100644 --- a/include/llvm/ConstantHandling.h +++ b/include/llvm/ConstantHandling.h @@ -169,12 +169,12 @@ inline Constant *operator^(const Constant &V1, const Constant &V2) { // Shift Instructions... inline Constant *operator<<(const Constant &V1, const Constant &V2) { - assert(V1.getType()->isIntegral() && V2.getType() == Type::UByteTy); + assert(V1.getType()->isInteger() && V2.getType() == Type::UByteTy); return ConstRules::get(V1)->shl(&V1, &V2); } inline Constant *operator>>(const Constant &V1, const Constant &V2) { - assert(V1.getType()->isIntegral() && V2.getType() == Type::UByteTy); + assert(V1.getType()->isInteger() && V2.getType() == Type::UByteTy); return ConstRules::get(V1)->shr(&V1, &V2); } |