|
|
@@ -82,12 +82,8 @@ extern "C" auto LLVMFuzzerTestOneInput(const unsigned char* data, size_t size)
|
|
|
new llvm::vfs::InMemoryFileSystem;
|
|
|
RawStringOstream error_stream;
|
|
|
llvm::raw_null_ostream null_ostream;
|
|
|
- Driver driver({.fs = fs,
|
|
|
- .installation = install_paths,
|
|
|
- .input_stream = nullptr,
|
|
|
- .output_stream = &null_ostream,
|
|
|
- .error_stream = &error_stream,
|
|
|
- .fuzzing = true});
|
|
|
+ Driver driver(fs, install_paths, /*input_stream=*/nullptr, &null_ostream,
|
|
|
+ &error_stream, /*fuzzing=*/true);
|
|
|
if (!driver.RunCommand(args).success) {
|
|
|
auto str = error_stream.TakeStr();
|
|
|
if (llvm::StringRef(str).find("error:") == llvm::StringRef::npos) {
|