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