From: Nuno Lopes Date: Mon, 28 Oct 2013 16:52:38 +0000 (+0000) Subject: simplify ConstantRange::getSetSize() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=790b973f80c8fd41f0908536409538336242f74d;p=llvm simplify ConstantRange::getSetSize() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193523 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp index bb38cd15e63..1085a45d0a2 100644 --- a/lib/Support/ConstantRange.cpp +++ b/lib/Support/ConstantRange.cpp @@ -144,9 +144,6 @@ bool ConstantRange::isSignWrappedSet() const { /// getSetSize - Return the number of elements in this set. /// APInt ConstantRange::getSetSize() const { - if (isEmptySet()) - return APInt(getBitWidth()+1, 0); - if (isFullSet()) { APInt Size(getBitWidth()+1, 0); Size.setBit(getBitWidth());