mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 09:25:25 +00:00
Validate that Symbols are all part of the same program
Assert in each AST constructor that symbols belong to the program of the parent. Bug: tint:709 Change-Id: I82ae9b23c88e89714a44e057a0272f0293385aaf Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/47624 Commit-Queue: Ben Clayton <bclayton@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
f0c816a757
commit
13ef87caab
@@ -67,7 +67,7 @@ const char* str(Parameter::Usage usage) {
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, Parameter parameter) {
|
||||
out << "[type: " << parameter.type->FriendlyName(SymbolTable{})
|
||||
out << "[type: " << parameter.type->FriendlyName(SymbolTable{ProgramID{}})
|
||||
<< ", usage: " << str(parameter.usage) << "]";
|
||||
return out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user