mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Add name accessor to NamedEntityView (#994)
This required changing BindingPattern::name() to return `"_"` instead of nullopt when representing a `"_"` binding. Semi-related drive-by fixes: - Update BindingPlaceholderValue to expose a NamedEntity instead of a string name, and stop exposing its type. - Drop the unused SourceLocation parameter of ValueEqual
This commit is contained in:
@@ -46,8 +46,8 @@ void Heap::Deallocate(AllocationId allocation) {
|
||||
if (alive_[allocation.index_]) {
|
||||
alive_[allocation.index_] = false;
|
||||
} else {
|
||||
FATAL_RUNTIME_ERROR_NO_LINE() << "deallocating an already dead value: "
|
||||
<< *values_[allocation.index_];
|
||||
FATAL() << "deallocating an already dead value: "
|
||||
<< *values_[allocation.index_];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user