mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix -Werror when compiling rL318083 (bis)
Statically assert the result and remove a runtime comparison, a direct consequence of the optimization introduced in rL318083. llvm-svn: 318090
This commit is contained in:
parent
f34cc96def
commit
38483c5e48
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user