mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
ast: Remove Variable constructor that doesn't take a source
set_source() will be removed, so sources will only be specifiable at construction time. Bug: tint:390 Change-Id: I5c79efd3fa501ebd9308f7f93cfb77bc12198047 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/35009 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
b4b29639a1
commit
321e5a9d7e
@@ -33,7 +33,7 @@ TEST_F(ScopeStackTest, Global) {
|
||||
|
||||
TEST_F(ScopeStackTest, Global_SetWithPointer) {
|
||||
ast::type::F32 f32;
|
||||
ast::Variable v("test", ast::StorageClass::kNone, &f32);
|
||||
ast::Variable v(Source{}, "test", ast::StorageClass::kNone, &f32);
|
||||
v.set_name("my_var");
|
||||
|
||||
ScopeStack<ast::Variable*> s;
|
||||
|
||||
Reference in New Issue
Block a user