Skip to content

Commit 37309fb

Browse files
author
serge-sans-paille
committed
Fix spurious warning in ExtensionDependencies.inc [nfc]
1 parent 70619fa commit 37309fb

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
@@ -977,12 +977,12 @@ function(process_llvm_pass_plugins)
977977
const char* Name;\n\
978978
const char* RequiredLibraries[1 + 1 + ${llvm_plugin_max_deps_length}];\n\
979979
};\n\
980-
std::array<ExtensionDescriptor, ${llvm_static_extension_count}> AvailableExtensions{\n")
980+
std::array<ExtensionDescriptor, ${llvm_static_extension_count}> AvailableExtensions{\n")
981981

982982
foreach(llvm_extension ${LLVM_STATIC_EXTENSIONS})
983983
get_property(llvm_plugin_deps TARGET ${llvm_extension} PROPERTY LINK_LIBRARIES)
984984

985-
file(APPEND "${ExtensionDeps}.tmp" "{\"${llvm_extension}\", {")
985+
file(APPEND "${ExtensionDeps}.tmp" "{{\"${llvm_extension}\", {")
986986
foreach(llvm_plugin_dep ${llvm_plugin_deps})
987987
# Turn library dependency back to component name, if possible.
988988
# That way llvm-config can avoid redundant dependencies.
@@ -996,7 +996,7 @@ function(process_llvm_pass_plugins)
996996
endforeach()
997997

998998
# Self + mandatory trailing null, because the number of RequiredLibraries differs between extensions.
999-
file(APPEND "${ExtensionDeps}.tmp" \"${llvm_extension}\", "nullptr}},\n")
999+
file(APPEND "${ExtensionDeps}.tmp" \"${llvm_extension}\", "nullptr}}},\n")
10001000
endforeach()
10011001
file(APPEND "${ExtensionDeps}.tmp" "};\n")
10021002

0 commit comments

Comments
 (0)