diff options
author | Owen Anderson <resistor@mac.com> | 2009-06-26 21:39:56 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-06-26 21:39:56 +0000 |
commit | afe0a083c198bbbfcd14e5720cc0a992be1b3413 (patch) | |
tree | 824608c38e9f7d9dffe0c2eaf47b1b1e3c8bcf44 | |
parent | d49ea77cbc24776142615fecf75f41e191c765bd (diff) | |
download | external_llvm-afe0a083c198bbbfcd14e5720cc0a992be1b3413.zip external_llvm-afe0a083c198bbbfcd14e5720cc0a992be1b3413.tar.gz external_llvm-afe0a083c198bbbfcd14e5720cc0a992be1b3413.tar.bz2 |
Constify this value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74330 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/PredicateSimplifier.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/PredicateSimplifier.cpp b/lib/Transforms/Scalar/PredicateSimplifier.cpp index b9b5688..a3cb751 100644 --- a/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/lib/Transforms/Scalar/PredicateSimplifier.cpp @@ -110,6 +110,8 @@ STATISTIC(NumSimple , "Number of simple replacements"); STATISTIC(NumBlocks , "Number of blocks marked unreachable"); STATISTIC(NumSnuggle , "Number of comparisons snuggled"); +static const ConstantRange empty(1, false); + namespace { class DomTreeDFS { public: @@ -939,7 +941,6 @@ namespace { const_iterator end() const { return RangeList.end(); } iterator find(DomTreeDFS::Node *Subtree) { - static ConstantRange empty(1, false); iterator E = end(); iterator I = std::lower_bound(begin(), E, std::make_pair(Subtree, empty), swo); @@ -949,7 +950,6 @@ namespace { } const_iterator find(DomTreeDFS::Node *Subtree) const { - static const ConstantRange empty(1, false); const_iterator E = end(); const_iterator I = std::lower_bound(begin(), E, std::make_pair(Subtree, empty), swo); @@ -962,7 +962,6 @@ namespace { assert(!CR.isEmptySet() && "Empty ConstantRange."); assert(!CR.isSingleElement() && "Refusing to store single element."); - static ConstantRange empty(1, false); iterator E = end(); iterator I = std::lower_bound(begin(), E, std::make_pair(Subtree, empty), swo); |