mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Constify this value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d49ea77cbc
commit
afe0a083c1
@ -110,6 +110,8 @@ STATISTIC(NumSimple , "Number of simple replacements");
|
|||||||
STATISTIC(NumBlocks , "Number of blocks marked unreachable");
|
STATISTIC(NumBlocks , "Number of blocks marked unreachable");
|
||||||
STATISTIC(NumSnuggle , "Number of comparisons snuggled");
|
STATISTIC(NumSnuggle , "Number of comparisons snuggled");
|
||||||
|
|
||||||
|
static const ConstantRange empty(1, false);
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class DomTreeDFS {
|
class DomTreeDFS {
|
||||||
public:
|
public:
|
||||||
@ -939,7 +941,6 @@ namespace {
|
|||||||
const_iterator end() const { return RangeList.end(); }
|
const_iterator end() const { return RangeList.end(); }
|
||||||
|
|
||||||
iterator find(DomTreeDFS::Node *Subtree) {
|
iterator find(DomTreeDFS::Node *Subtree) {
|
||||||
static ConstantRange empty(1, false);
|
|
||||||
iterator E = end();
|
iterator E = end();
|
||||||
iterator I = std::lower_bound(begin(), E,
|
iterator I = std::lower_bound(begin(), E,
|
||||||
std::make_pair(Subtree, empty), swo);
|
std::make_pair(Subtree, empty), swo);
|
||||||
@ -949,7 +950,6 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const_iterator find(DomTreeDFS::Node *Subtree) const {
|
const_iterator find(DomTreeDFS::Node *Subtree) const {
|
||||||
static const ConstantRange empty(1, false);
|
|
||||||
const_iterator E = end();
|
const_iterator E = end();
|
||||||
const_iterator I = std::lower_bound(begin(), E,
|
const_iterator I = std::lower_bound(begin(), E,
|
||||||
std::make_pair(Subtree, empty), swo);
|
std::make_pair(Subtree, empty), swo);
|
||||||
@ -962,7 +962,6 @@ namespace {
|
|||||||
assert(!CR.isEmptySet() && "Empty ConstantRange.");
|
assert(!CR.isEmptySet() && "Empty ConstantRange.");
|
||||||
assert(!CR.isSingleElement() && "Refusing to store single element.");
|
assert(!CR.isSingleElement() && "Refusing to store single element.");
|
||||||
|
|
||||||
static ConstantRange empty(1, false);
|
|
||||||
iterator E = end();
|
iterator E = end();
|
||||||
iterator I =
|
iterator I =
|
||||||
std::lower_bound(begin(), E, std::make_pair(Subtree, empty), swo);
|
std::lower_bound(begin(), E, std::make_pair(Subtree, empty), swo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user