[PATCH] D74329: [ValueLattice] Remove obsolete getConstantInt (NFC).
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 08:20:05 PST 2020
fhahn created this revision.
fhahn added a reviewer: nikic.
Herald added a project: LLVM.
ConstantInt values are always represented as constant ranges with a
single element. getConstantInt is obsolete, as pointed out by @nikic
during D60581 <https://reviews.llvm.org/D60581>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74329
Files:
llvm/include/llvm/Analysis/ValueLattice.h
Index: llvm/include/llvm/Analysis/ValueLattice.h
===================================================================
--- llvm/include/llvm/Analysis/ValueLattice.h
+++ llvm/include/llvm/Analysis/ValueLattice.h
@@ -281,12 +281,6 @@
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74329.243572.patch
Type: text/x-patch
Size: 621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200210/70748b9d/attachment.bin>
More information about the llvm-commits
mailing list