Have TypesBuilder::void_() return ast::Void

Bug: tint:724
Change-Id: Ie4876c06f9b67601a9601b77bdcaeec94145938e
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51661
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
Ben Clayton
2021-05-20 14:31:48 +00:00
committed by Tint LUCI CQ
parent c03d3bdc94
commit cc98b4f9aa
9 changed files with 14 additions and 16 deletions

View File

@@ -391,14 +391,12 @@ class ProgramBuilder {
}
/// @returns a void type
typ::Void void_() const {
return {builder->create<ast::Void>(), builder->create<sem::Void>()};
}
typ::Void void_() const { return {builder->create<ast::Void>()}; }
/// @param source the Source of the node
/// @returns a void type
typ::Void void_(const Source& source) const {
return {builder->create<ast::Void>(source), builder->create<sem::Void>()};
return {builder->create<ast::Void>(source)};
}
/// @param type vector subtype