[llvm] d15325c - [ValueLattice] Remove obsolete getConstantInt (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 10:25:55 PST 2020
Author: Florian Hahn
Date: 2020-02-10T18:25:21Z
New Revision: d15325c9e0a06624f3675363b497da360f9b102c
URL: https://github.com/llvm/llvm-project/commit/d15325c9e0a06624f3675363b497da360f9b102c
DIFF: https://github.com/llvm/llvm-project/commit/d15325c9e0a06624f3675363b497da360f9b102c.diff
LOG: [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
Added:
Modified:
llvm/include/llvm/Analysis/ValueLattice.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/ValueLattice.h b/llvm/include/llvm/Analysis/ValueLattice.h
index 56519d7d0857..ffe43adefba0 100644
--- a/llvm/include/llvm/Analysis/ValueLattice.h
+++ b/llvm/include/llvm/Analysis/ValueLattice.h
@@ -281,12 +281,6 @@ class ValueLatticeElement {
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.
More information about the llvm-commits
mailing list