mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 08:00:54 +00: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:
1 parent
5749413b28
commit
2e9e4f4cb3
23 files changed
+99
-150
No files matched your search
@@ -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