mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
[type-determiner] Move ast::Module to constructor.
This CL moves the ast::Module to be provided to the type determiner constructor so we can access it for things like the imports. Change-Id: I110fffe669a8a007461bf84d30d85d70405e37be Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/19761 Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
committed by
dan sinclair
parent
cd077b01a9
commit
b950e80a59
@@ -305,8 +305,8 @@ int main(int argc, const char** argv) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
tint::TypeDeterminer td(&ctx);
|
||||
if (!td.Determine(&mod)) {
|
||||
tint::TypeDeterminer td(&ctx, &mod);
|
||||
if (!td.Determine()) {
|
||||
std::cerr << td.error() << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user