Tidied some ugliness in the SlotIndex default constructor.
authorLang Hames <lhames@gmail.com>
Thu, 5 Nov 2009 01:18:31 +0000 (01:18 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 5 Nov 2009 01:18:31 +0000 (01:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86097 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SlotIndexes.h

index 1d02e06ae772542e94d14b2027731a0b3154f6ea..a179725f1f520c414806285b170e568ea192c1c9 100644 (file)
@@ -159,7 +159,7 @@ namespace llvm {
     }
     
     /// Construct an invalid index.
-    SlotIndex() : lie(&getEmptyKey().entry(), 0) {}
+    SlotIndex() : lie(IndexListEntry::getEmptyKeyEntry(), 0) {}
 
     // Construct a new slot index from the given one, set the phi flag on the
     // new index to the value of the phi parameter.