From 289b8a2bd97441e051e25744ebf29fe8b19008d4 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 4 Nov 2009 21:24:15 +0000 Subject: Handle empty/tombstone keys for LiveIndex more cleanly. Check for index sanity when constructing index list entries. llvm-svn: 86049 --- llvm/lib/CodeGen/SlotIndexes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen') 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 SlotIndex::emptyKeyPtr(0), - SlotIndex::tombstoneKeyPtr(0); +std::auto_ptr IndexListEntry::emptyKeyEntry, + IndexListEntry::tombstoneKeyEntry; char SlotIndexes::ID = 0; static RegisterPass X("slotindexes", "Slot index numbering"); -- cgit v1.2.3