diff --git a/include/vast/Frontend/Options.hpp b/include/vast/Frontend/Options.hpp index ac447914b5..d823387979 100644 --- a/include/vast/Frontend/Options.hpp +++ b/include/vast/Frontend/Options.hpp @@ -91,9 +91,9 @@ namespace vast::cc llvm::Twine disable(string_ref pipeline_name); - constexpr option_t show_locs = "show-locs"; + constexpr option_t show_locs = "show-locs"; constexpr option_t locs_as_meta_ids = "locs-as-meta-ids"; - constexpr option_t loc_attrs = "loc-attrs"; + constexpr option_t loc_attrs = "loc-attrs"; constexpr option_t disable_unsupported = "disable-unsupported"; diff --git a/lib/vast/Frontend/Consumer.cpp b/lib/vast/Frontend/Consumer.cpp index c3a1e7f00d..3550b916a4 100644 --- a/lib/vast/Frontend/Consumer.cpp +++ b/lib/vast/Frontend/Consumer.cpp @@ -294,7 +294,9 @@ namespace vast::cc { void vast_stream_consumer::print_mlir_string_format(owning_mlir_module_ref mod) { // FIXME: we cannot roundtrip prettyForm=true right now. mlir::OpPrintingFlags flags; - flags.enableDebugInfo(vargs.has_option(opt::show_locs), /* prettyForm */ !vargs.has_option(opt::loc_attrs)); + flags.enableDebugInfo( + vargs.has_option(opt::show_locs), /* prettyForm */ !vargs.has_option(opt::loc_attrs) + ); mod->print(*output_stream, flags); } diff --git a/tools/detect-parsers/main.cpp b/tools/detect-parsers/main.cpp index 053a16f27e..89440dc85f 100644 --- a/tools/detect-parsers/main.cpp +++ b/tools/detect-parsers/main.cpp @@ -41,6 +41,7 @@ namespace vast { VAST_FATAL("Failed to open file for SARIF output: {}", ec.message()); } gap::sarif::root root{ + .version = gap::sarif::version::k2_1_0, .runs{ { {