mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 22:02:51 +01:00
Migrate remaining exits to FATAL_*_ERROR calls (#704)
Adds FATAL for things that are most likely programming errors in executable_semantics.
This commit is contained in:
@@ -34,9 +34,8 @@ void Heap::Write(const Address& a, const Value* v, int line_num) {
|
||||
|
||||
void Heap::CheckAlive(const Address& address, int line_num) {
|
||||
if (!alive_[address.index]) {
|
||||
FATAL_RUNTIME_ERROR(line_num)
|
||||
<< ": undefined behavior: access to dead value "
|
||||
<< *values_[address.index];
|
||||
FATAL_RUNTIME_ERROR(line_num) << "undefined behavior: access to dead value "
|
||||
<< *values_[address.index];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user