forked from OSchip/llvm-project
FuzzMutate: Fix arch parsing in FuzzerCLI
The right way to parse arch names is by creating a triple. This was using getArchTypeForLLVMName before, which doesn't really do the right thing here. llvm-svn: 315965
This commit is contained in:
parent
a42f60e7f7
commit
45623bd06d
|
@ -47,7 +47,7 @@ void llvm::handleExecNameEncodedBEOpts(StringRef ExecName) {
|
|||
Args.push_back("-O0");
|
||||
} else if (Opt.startswith("O")) {
|
||||
Args.push_back("-" + Opt.str());
|
||||
} else if (Triple::getArchTypeForLLVMName(Opt)) {
|
||||
} else if (Triple(Opt).getArch()) {
|
||||
Args.push_back("-mtriple=" + Opt.str());
|
||||
} else {
|
||||
errs() << ExecName << ": Unknown option: " << Opt << ".\n";
|
||||
|
|
Loading…
Reference in New Issue