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:
parent
31b7fca82c
commit
47fb4f9c57
|
@ -26,15 +26,15 @@ namespace {
|
||||||
|
|
||||||
class ScopedStopNode {
|
class ScopedStopNode {
|
||||||
public:
|
public:
|
||||||
ScopedStopNode(std::unordered_set<const FlowNode*>* stop_nodes_, const FlowNode* node)
|
ScopedStopNode(std::unordered_set<const FlowNode*>* stop_nodes, const FlowNode* node)
|
||||||
: stop_nodes__(stop_nodes_), node_(node) {
|
: stop_nodes_(stop_nodes), node_(node) {
|
||||||
stop_nodes__->insert(node_);
|
stop_nodes_->insert(node_);
|
||||||
}
|
}
|
||||||
|
|
||||||
~ScopedStopNode() { stop_nodes__->erase(node_); }
|
~ScopedStopNode() { stop_nodes_->erase(node_); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unordered_set<const FlowNode*>* stop_nodes__;
|
std::unordered_set<const FlowNode*>* stop_nodes_;
|
||||||
const FlowNode* node_;
|
const FlowNode* node_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue