mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 07:25:51 +01:00
Add equality comparisons to Ptr (#774)
This commit is contained in:
@@ -1139,8 +1139,7 @@ struct DoTransition {
|
||||
|
||||
void operator()(const UnwindTo& unwind_to) {
|
||||
Ptr<Frame> frame = state->stack.Top();
|
||||
// TODO: drop .Get() calls once `Ptr` has comparison operators
|
||||
while (frame->todo.Top().Get() != unwind_to.new_top.Get()) {
|
||||
while (frame->todo.Top() != unwind_to.new_top) {
|
||||
if (IsBlockAct(frame->todo.Top())) {
|
||||
DeallocateScope(frame->scopes.Top());
|
||||
frame->scopes.Pop();
|
||||
|
||||
Reference in New Issue
Block a user