File tree Expand file tree Collapse file tree
llvm/include/llvm/CodeGen Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,20 +58,6 @@ class raw_ostream;
5858 void setIndex (unsigned index) {
5959 this ->index = index;
6060 }
61-
62- #ifdef EXPENSIVE_CHECKS
63- // When EXPENSIVE_CHECKS is defined, "erased" index list entries will
64- // actually be moved to a "graveyard" list, and have their pointers
65- // poisoned, so that dangling SlotIndex access can be reliably detected.
66- void setPoison () {
67- intptr_t tmp = reinterpret_cast <intptr_t >(mi);
68- assert (((tmp & 0x1 ) == 0x0 ) && " Pointer already poisoned?" );
69- tmp |= 0x1 ;
70- mi = reinterpret_cast <MachineInstr*>(tmp);
71- }
72-
73- bool isPoisoned () const { return (reinterpret_cast <intptr_t >(mi) & 0x1 ) == 0x1 ; }
74- #endif // EXPENSIVE_CHECKS
7561 };
7662
7763 template <>
@@ -110,10 +96,6 @@ class raw_ostream;
11096
11197 IndexListEntry* listEntry () const {
11298 assert (isValid () && " Attempt to compare reserved index." );
113- #ifdef EXPENSIVE_CHECKS
114- assert (!lie.getPointer ()->isPoisoned () &&
115- " Attempt to access deleted list-entry." );
116- #endif // EXPENSIVE_CHECKS
11799 return lie.getPointer ();
118100 }
119101
You can’t perform that action at this time.
0 commit comments