mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
Triforce v0.3.6
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <bit>
|
||||
#include <span>
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
#include <concepts>
|
||||
#include <cstddef>
|
||||
#include <cstdlib>
|
||||
@@ -158,7 +159,9 @@ public:
|
||||
|
||||
Stream& operator<<(Id value) {
|
||||
if (value.value == 0) {
|
||||
std::abort();
|
||||
// (super build) thrown, not std::abort(): a program whose SPIR-V would name an undefined value is not
|
||||
// translated (the caller's catch says so), rather than ending the process with nothing in the log
|
||||
throw std::runtime_error("sirit: an operand with no SPIR-V definition (null Id)");
|
||||
}
|
||||
return *this << value.value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user