mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user