summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SlotIndexes.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2009-11-04 21:24:15 +0000
committerLang Hames <lhames@gmail.com>2009-11-04 21:24:15 +0000
commit289b8a2bd97441e051e25744ebf29fe8b19008d4 (patch)
tree85532d951412e5efec5dc5a63be37abd92964a96 /llvm/lib/CodeGen/SlotIndexes.cpp
parent181aaee16501f1ffabda0775b2d5f2d7a3595ccc (diff)
downloadbcm5719-llvm-289b8a2bd97441e051e25744ebf29fe8b19008d4.tar.gz
bcm5719-llvm-289b8a2bd97441e051e25744ebf29fe8b19008d4.zip
Handle empty/tombstone keys for LiveIndex more cleanly. Check for index sanity when constructing index list entries.
llvm-svn: 86049
Diffstat (limited to 'llvm/lib/CodeGen/SlotIndexes.cpp')
-rw-r--r--llvm/lib/CodeGen/SlotIndexes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SlotIndexes.cpp b/llvm/lib/CodeGen/SlotIndexes.cpp
index 6b04029fba2..f3ad0d1cc0a 100644
--- a/llvm/lib/CodeGen/SlotIndexes.cpp
+++ b/llvm/lib/CodeGen/SlotIndexes.cpp
@@ -16,8 +16,8 @@
using namespace llvm;
-std::auto_ptr<IndexListEntry> SlotIndex::emptyKeyPtr(0),
- SlotIndex::tombstoneKeyPtr(0);
+std::auto_ptr<IndexListEntry> IndexListEntry::emptyKeyEntry,
+ IndexListEntry::tombstoneKeyEntry;
char SlotIndexes::ID = 0;
static RegisterPass<SlotIndexes> X("slotindexes", "Slot index numbering");
OpenPOWER on IntegriCloud