summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-07-24 11:44:15 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-07-24 11:44:15 +0000
commita1613db62fec94845aa8306232fb665273615bad (patch)
treed9b541005246a4308a815f53a347f5cbc3714c61 /lib/CodeGen/LiveInterval.cpp
parent7d91e49ff7bcc0fd10a54d45a6185bb05adf3d20 (diff)
downloadllvm-a1613db62fec94845aa8306232fb665273615bad.tar.gz
llvm-a1613db62fec94845aa8306232fb665273615bad.tar.bz2
llvm-a1613db62fec94845aa8306232fb665273615bad.tar.xz
Change std::map<unsigned, LiveInterval*> into a std::map<unsigned,
LiveInterval>. This saves some space and removes the pointer indirection caused by following the pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r--lib/CodeGen/LiveInterval.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp
index 79aa710c03..11eb0fe7de 100644
--- a/lib/CodeGen/LiveInterval.cpp
+++ b/lib/CodeGen/LiveInterval.cpp
@@ -75,8 +75,8 @@ bool LiveInterval::overlaps(const LiveInterval& other) const {
return true;
if (i->start > j->start) {
- swap(i, j);
- swap(ie, je);
+ std::swap(i, j);
+ std::swap(ie, je);
}
assert(i->start < j->start);