mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:54:47 +01:00
Switch Driver back to parameters for construction (#4849)
This is for more complex construction, see #4846
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user