mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
tint/transform: fix PromoteInitializersToLet for constant expressions
Fix more edge cases uncovered with tint:1781 Fixed: tint:1781 Change-Id: I58d120185f47c10bc9fe55dd95a198d496c4ec94 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/113024 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
dd0d45102a
commit
f528d33d52
@@ -25,7 +25,12 @@ struct NodeID {
|
||||
/// Equality operator
|
||||
/// @param other the other NodeID
|
||||
/// @returns true if the NodeIDs are the same
|
||||
bool operator==(const NodeID& other) const { return value == other.value; }
|
||||
bool operator==(NodeID other) const { return value == other.value; }
|
||||
|
||||
/// Less-than comparison operator
|
||||
/// @param other the other NodeID
|
||||
/// @returns true if the other comes before this node
|
||||
bool operator<(NodeID other) const { return value < other.value; }
|
||||
|
||||
/// The numerical value for the node identifier
|
||||
size_t value = 0;
|
||||
|
||||
Reference in New Issue
Block a user