File tree 1 file changed +0
-18
lines changed
llvm/include/llvm/CodeGen 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -58,20 +58,6 @@ class raw_ostream;
58
58
void setIndex (unsigned index) {
59
59
this ->index = index ;
60
60
}
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
75
61
};
76
62
77
63
template <>
@@ -110,10 +96,6 @@ class raw_ostream;
110
96
111
97
IndexListEntry* listEntry () const {
112
98
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
117
99
return lie.getPointer ();
118
100
}
119
101
You can’t perform that action at this time.
0 commit comments