Have TypesBuilder::bool_() return ast::Bool

Bug: tint:724
Change-Id: I7b5b1d0633f5ba654829502eaceee1ffa3ee4cd2
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51660
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
Ben Clayton
2021-05-20 14:22:28 +00:00
committed by Tint LUCI CQ
parent 9e32b20096
commit c03d3bdc94
9 changed files with 40 additions and 30 deletions

View File

@@ -355,14 +355,12 @@ class ProgramBuilder {
}
/// @returns a boolean type
typ::Bool bool_() const {
return {builder->create<ast::Bool>(), builder->create<sem::Bool>()};
}
typ::Bool bool_() const { return {builder->create<ast::Bool>()}; }
/// @param source the Source of the node
/// @returns a boolean type
typ::Bool bool_(const Source& source) const {
return {builder->create<ast::Bool>(source), builder->create<sem::Bool>()};
return {builder->create<ast::Bool>(source)};
}
/// @returns a f32 type