mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[ValueLattice] Remove obsolete getConstantInt (NFC).
ConstantInt values are always represented as constant ranges with a single element. getConstantInt is obsolete, as pointed out by @nikic during D60581. Reviewers: nikic Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D74329
This commit is contained in:
parent
e80d68f22a
commit
ca7b74e95e
@ -281,12 +281,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
ConstantInt *getConstantInt() const {
|
||||
assert(isConstant() && isa<ConstantInt>(getConstant()) &&
|
||||
"No integer constant");
|
||||
return cast<ConstantInt>(getConstant());
|
||||
}
|
||||
|
||||
/// Compares this symbolic value with Other using Pred and returns either
|
||||
/// true, false or undef constants, or nullptr if the comparison cannot be
|
||||
/// evaluated.
|
||||
|
Loading…
Reference in New Issue
Block a user