mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
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:
committed by
Tint LUCI CQ
parent
9e32b20096
commit
c03d3bdc94
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user