mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 04:07:59 +08:00
14 lines
647 B
Diff
14 lines
647 B
Diff
diff --git a/thrift/compiler/compiler.cc b/thrift/compiler/compiler.cc
|
|
index 5e24fd6853f..8c7985e3c11 100644
|
|
--- a/thrift/compiler/compiler.cc
|
|
+++ b/thrift/compiler/compiler.cc
|
|
@@ -734,7 +734,7 @@ std::unique_ptr<t_program_bundle> parse_and_mutate(
|
|
const parsing_params& pparams,
|
|
const gen_params& gparams) {
|
|
auto found_or_error = source_manager::path_or_error();
|
|
- if (bundle_annotations()) {
|
|
+ if constexpr (bundle_annotations()) {
|
|
const std::string scope_path = "thrift/annotation/scope.thrift";
|
|
found_or_error = source_mgr.find_include_file(
|
|
scope_path, input_filename, pparams.incl_searchpath);
|