[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 4 18:57:02 PDT 2004
Changes in directory llvm/lib/VMCore:
Constants.cpp updated: 1.88 -> 1.89
---
Log message:
Delete some unreachable code
---
Diffs of the changes: (+0 -5)
Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.88 llvm/lib/VMCore/Constants.cpp:1.89
--- llvm/lib/VMCore/Constants.cpp:1.88 Tue May 25 00:32:43 2004
+++ llvm/lib/VMCore/Constants.cpp Fri Jun 4 18:52:36 2004
@@ -436,7 +436,6 @@
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 @@
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 @@
case Type::ULongTyID:
return true; // This is the largest type...
}
- assert(0 && "WTF?");
- return false;
}
bool ConstantFP::isValueValidForType(const Type *Ty, double Val) {
More information about the llvm-commits
mailing list