diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-04 23:52:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-04 23:52:36 +0000 |
commit | 20924bc3ddf5d11f3d18fb811d605f1b2faf3cd3 (patch) | |
tree | ec7f0662c1f2b38e227282a3e3ba851eec256620 | |
parent | 40c732cc52a5c71cead461646667ef5b13801923 (diff) | |
download | external_llvm-20924bc3ddf5d11f3d18fb811d605f1b2faf3cd3.tar.gz external_llvm-20924bc3ddf5d11f3d18fb811d605f1b2faf3cd3.tar.bz2 external_llvm-20924bc3ddf5d11f3d18fb811d605f1b2faf3cd3.zip |
Delete some unreachable code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14031 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Constants.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index a393be98ae..d3a6a2502a 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -436,7 +436,6 @@ bool ConstantSInt::isValueValidForType(const Type *Ty, int64_t Val) { switch (Ty->getPrimitiveID()) { default: return false; // These can't be represented as integers!!! - // Signed types... case Type::SByteTyID: return (Val <= INT8_MAX && Val >= INT8_MIN); @@ -447,8 +446,6 @@ bool ConstantSInt::isValueValidForType(const Type *Ty, int64_t Val) { case Type::LongTyID: return true; // This is the largest type... } - assert(0 && "WTF?"); - return false; } bool ConstantUInt::isValueValidForType(const Type *Ty, uint64_t Val) { @@ -466,8 +463,6 @@ bool ConstantUInt::isValueValidForType(const Type *Ty, uint64_t Val) { case Type::ULongTyID: return true; // This is the largest type... } - assert(0 && "WTF?"); - return false; } bool ConstantFP::isValueValidForType(const Type *Ty, double Val) { |