Skip to content

Commit 3ca8b23

Browse files
serge-sans-pailletstellar
serge-sans-paille
authored andcommitted
Fix spurious warning in ExtensionDependencies.inc [nfc]
(cherry picked from commit 37309fb)
1 parent 576559e commit 3ca8b23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/cmake/modules/AddLLVM.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -972,12 +972,12 @@ function(process_llvm_pass_plugins)
972972
const char* Name;\n\
973973
const char* RequiredLibraries[1 + 1 + ${llvm_plugin_max_deps_length}];\n\
974974
};\n\
975-
std::array<ExtensionDescriptor, ${llvm_static_extension_count}> AvailableExtensions{\n")
975+
std::array<ExtensionDescriptor, ${llvm_static_extension_count}> AvailableExtensions{\n")
976976

977977
foreach(llvm_extension ${LLVM_STATIC_EXTENSIONS})
978978
get_property(llvm_plugin_deps TARGET ${llvm_extension} PROPERTY LINK_LIBRARIES)
979979

980-
file(APPEND "${ExtensionDeps}.tmp" "{\"${llvm_extension}\", {")
980+
file(APPEND "${ExtensionDeps}.tmp" "{{\"${llvm_extension}\", {")
981981
foreach(llvm_plugin_dep ${llvm_plugin_deps})
982982
# Turn library dependency back to component name, if possible.
983983
# That way llvm-config can avoid redundant dependencies.
@@ -991,7 +991,7 @@ function(process_llvm_pass_plugins)
991991
endforeach()
992992

993993
# Self + mandatory trailing null, because the number of RequiredLibraries differs between extensions.
994-
file(APPEND "${ExtensionDeps}.tmp" \"${llvm_extension}\", "nullptr}},\n")
994+
file(APPEND "${ExtensionDeps}.tmp" \"${llvm_extension}\", "nullptr}}},\n")
995995
endforeach()
996996
file(APPEND "${ExtensionDeps}.tmp" "};\n")
997997

0 commit comments

Comments
 (0)