diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-03 18:44:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-03 18:44:58 +0000 |
commit | 5bc3e31c5438a6c1a8d78dc55dcb7fb043bc8365 (patch) | |
tree | 9930470ce43633b44b56819a01901eea70861de1 | |
parent | ab13ae8c46f3b74ce692749194a56c03f51c4fc3 (diff) |
Fix InstCombine/2003-11-03-VarargsCallBug.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9681 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Type.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index b92c5dcaf5..ed468022cb 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -102,10 +102,9 @@ bool Type::isLosslesslyConvertibleTo(const Type *Ty) const { case Type::ShortTyID: return Ty == Type::UShortTy; case Type::UIntTyID: return Ty == Type::IntTy; case Type::IntTyID: return Ty == Type::UIntTy; - case Type::ULongTyID: - case Type::LongTyID: - case Type::PointerTyID: - return Ty == Type::ULongTy || Ty == Type::LongTy || isa<PointerType>(Ty); + case Type::ULongTyID: return Ty == Type::LongTy; + case Type::LongTyID: return Ty == Type::ULongTy; + case Type::PointerTyID: return isa<PointerType>(Ty); default: return false; // Other types have no identity values } |