change to assert

This commit is contained in:
renguoqing1 2022-09-24 23:02:33 +08:00
parent 9a98cb6903
commit ef1677ef67

View file

@ -1991,9 +1991,7 @@ void AllowCommandLineReparsing() {
void ReparseCommandLineNonHelpFlags() {
// Check reparse status
if (!allow_command_line_reparsing) {
return;
}
assert(allow_command_line_reparsing);
// We make a copy of argc and argv to pass in
const vector<string>& argvs = GetArgvs();
int tmp_argc = static_cast<int>(argvs.size());