Skip to content

Commit a3c4fe2

Browse files
committed
[llvm] Undo change to constructor in OptSubCommand example
Originally done in #166088. This broke 2 of our Flang builds with this error: FAILED: examples/OptSubcommand/CMakeFiles/OptSubcommand.dir/llvm-hello-sub.cpp.o /usr/local/bin/c++ <..> -c /home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/llvm/examples/OptSubcommand/llvm-hello-sub.cpp ../llvm-project/llvm/examples/OptSubcommand/llvm-hello-sub.cpp:49:51: error: expected '{' or ',' 49 | OptionSubCommandIDsTable) = default; | ^
1 parent ab04989 commit a3c4fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/examples/OptSubcommand/llvm-hello-sub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class HelloSubOptTable : public GenericOptTable {
4646
HelloSubOptTable()
4747
: GenericOptTable(OptionStrTable, OptionPrefixesTable, InfoTable,
4848
/*IgnoreCase=*/false, OptionSubCommands,
49-
OptionSubCommandIDsTable) = default;
49+
OptionSubCommandIDsTable) {};
5050
};
5151
} // namespace
5252

0 commit comments

Comments
 (0)