Commit b7558540 authored by Adam Klein's avatar Adam Klein Committed by V8 LUCI CQ

[torque] Use default constructor in place of self-delegation for Symbol()

This avoids a compile error when building with GCC in C++17 mode.

Bug: v8:12449
Change-Id: I14817895d31019fb71fc71b061f2ecf576dbc711
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3307102
Commit-Queue: Adam Klein <adamk@chromium.org>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78171}
parent 6f60dea6
......@@ -248,7 +248,7 @@ class Rule final {
// used in the parser.
class Symbol {
public:
Symbol() : Symbol({}) {}
Symbol() = default;
Symbol(std::initializer_list<Rule> rules) { *this = rules; }
// Disallow copying and moving to ensure Symbol has a stable address.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment