mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 17:06:15 +00:00
Fix -Werror when compiling rL318083
Statically assert the result and remove a runtime comparison, a direct consequence of the optimization introduced in rL318083. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cfcc1f1c64
commit
5aed538ef1
@ -117,8 +117,8 @@ public:
|
|||||||
|
|
||||||
//// Methods for support type inquiry through isa, cast, and dyn_cast:
|
//// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||||
static bool classof(const Value *V) {
|
static bool classof(const Value *V) {
|
||||||
return V->getValueID() >= ConstantFirstVal &&
|
static_assert(ConstantFirstVal == 0, "V->getValueID() >= ConstantFirstVal always succeeds");
|
||||||
V->getValueID() <= ConstantLastVal;
|
return V->getValueID() <= ConstantLastVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This method is a special form of User::replaceUsesOfWith
|
/// This method is a special form of User::replaceUsesOfWith
|
||||||
|
Loading…
x
Reference in New Issue
Block a user