tint/ir: fix double-underscore in identifier

This is reserved in C++, and triggers a warning-as-error for gcc

Change-Id: I0595977e690f9e0e7d5e1b6dd1fdeb74183fc378
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111440
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2022-11-23 15:00:51 +00:00 committed by Dawn LUCI CQ
parent 31b7fca82c
commit 47fb4f9c57
1 changed files with 5 additions and 5 deletions
src/tint/ir

View File

@ -26,15 +26,15 @@ namespace {
class ScopedStopNode {
public:
ScopedStopNode(std::unordered_set<const FlowNode*>* stop_nodes_, const FlowNode* node)
: stop_nodes__(stop_nodes_), node_(node) {
stop_nodes__->insert(node_);
ScopedStopNode(std::unordered_set<const FlowNode*>* stop_nodes, const FlowNode* node)
: stop_nodes_(stop_nodes), node_(node) {
stop_nodes_->insert(node_);
}
~ScopedStopNode() { stop_nodes__->erase(node_); }
~ScopedStopNode() { stop_nodes_->erase(node_); }
private:
std::unordered_set<const FlowNode*>* stop_nodes__;
std::unordered_set<const FlowNode*>* stop_nodes_;
const FlowNode* node_;
};