diff options
| -rw-r--r-- | llvm/include/llvm/IR/Value.h | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/Value.h b/llvm/include/llvm/IR/Value.h index f50f0172685..60a64c8ba8a 100644 --- a/llvm/include/llvm/IR/Value.h +++ b/llvm/include/llvm/IR/Value.h @@ -762,8 +762,8 @@ template <class Compare> void Value::sortUseList(Compare Cmp) {  //  template <> struct isa_impl<Constant, Value> {    static inline bool doit(const Value &Val) { -    return Val.getValueID() >= Value::ConstantFirstVal && -      Val.getValueID() <= Value::ConstantLastVal; +    static_assert(Value::ConstantFirstVal == 0, "Val.getValueID() >= Value::ConstantFirstVal"); +    return Val.getValueID() <= Value::ConstantLastVal;    }  };  | 

