forked from OSchip/llvm-project
Fix VSCode/TestOptions.test
Found by https://lab.llvm.org/buildbot/#/builders/96/builds/6936
This commit is contained in:
parent
f749550cfe
commit
875654f897
|
@ -3158,6 +3158,11 @@ int main(int argc, char *argv[]) {
|
|||
llvm::ArrayRef<const char *> ArgsArr = llvm::makeArrayRef(argv + 1, argc);
|
||||
llvm::opt::InputArgList input_args = T.ParseArgs(ArgsArr, MAI, MAC);
|
||||
|
||||
if (input_args.hasArg(OPT_help)) {
|
||||
printHelp(T, llvm::sys::path::filename(argv[0]));
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
if (llvm::opt::Arg *target_arg = input_args.getLastArg(OPT_launch_target)) {
|
||||
if (llvm::opt::Arg *comm_file = input_args.getLastArg(OPT_comm_file)) {
|
||||
int target_args_pos = argc;
|
||||
|
@ -3189,11 +3194,6 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
int portno = -1;
|
||||
|
||||
if (input_args.hasArg(OPT_help)) {
|
||||
printHelp(T, llvm::sys::path::filename(argv[0]));
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
if (auto *arg = input_args.getLastArg(OPT_port)) {
|
||||
auto optarg = arg->getValue();
|
||||
char *remainder;
|
||||
|
|
Loading…
Reference in New Issue