mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
Have TypesBuilder::i32() return ast::I32
Bug: tint:724 Change-Id: I2b4abc1f128a1489a4023bd3b82fc7234d70449f Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51485 Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
@@ -377,14 +377,12 @@ class ProgramBuilder {
|
||||
}
|
||||
|
||||
/// @returns a i32 type
|
||||
typ::I32 i32() const {
|
||||
return {builder->create<ast::I32>(), builder->create<sem::I32>()};
|
||||
}
|
||||
typ::I32 i32() const { return {builder->create<ast::I32>()}; }
|
||||
|
||||
/// @param source the Source of the node
|
||||
/// @returns a i32 type
|
||||
typ::I32 i32(const Source& source) const {
|
||||
return {builder->create<ast::I32>(source), builder->create<sem::I32>()};
|
||||
return {builder->create<ast::I32>(source)};
|
||||
}
|
||||
|
||||
/// @returns a u32 type
|
||||
|
||||
Reference in New Issue
Block a user