File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
llvm/include/llvm/CodeGen Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,7 @@ class raw_ostream;
125
125
126
126
// Construct a new slot index from the given one, and set the slot.
127
127
SlotIndex (const SlotIndex &li, Slot s) : lie(li.listEntry(), unsigned (s)) {
128
- assert (lie.getPointer () != nullptr &&
129
- " Attempt to construct index with 0 pointer." );
128
+ assert (isValid () && " Attempt to construct index with 0 pointer." );
130
129
}
131
130
132
131
// / Returns true if this is a valid index. Invalid indices do
@@ -178,7 +177,7 @@ class raw_ostream;
178
177
179
178
// / isSameInstr - Return true if A and B refer to the same instruction.
180
179
static bool isSameInstr (SlotIndex A, SlotIndex B) {
181
- return A.lie . getPointer () == B.lie . getPointer ();
180
+ return A.listEntry () == B.listEntry ();
182
181
}
183
182
184
183
// / isEarlierInstr - Return true if A refers to an instruction earlier than
You can’t perform that action at this time.
0 commit comments