Build fixes
fuzzer: GetErrors() was replaced with Diagnostics() remote-compile: Add missing header for macOS Change-Id: I7697fd41b3cc4e3b59e10a6c395d610a51ec8daf Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59025 Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
36b49e8834
commit
f3fffdaded
|
@ -182,8 +182,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|||
spv_to_wgsl.EnableInspector();
|
||||
spv_to_wgsl.Run(data, size);
|
||||
if (spv_to_wgsl.HasErrors()) {
|
||||
util::LogSpvError(spv_to_wgsl.GetErrors(), data, size,
|
||||
context->params.error_dir);
|
||||
auto error = spv_to_wgsl.Diagnostics().str();
|
||||
util::LogSpvError(error, data, size, context->params.error_dir);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -204,7 +204,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|||
fuzzer.EnableInspector();
|
||||
fuzzer.Run(reinterpret_cast<const uint8_t*>(wgsl.data()), wgsl.size());
|
||||
if (fuzzer.HasErrors()) {
|
||||
util::LogWgslError(fuzzer.GetErrors(), data, size, wgsl, target.second,
|
||||
auto error = spv_to_wgsl.Diagnostics().str();
|
||||
util::LogWgslError(error, data, size, wgsl, target.second,
|
||||
context->params.error_dir);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
// limitations under the License.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
|
Loading…
Reference in New Issue