[llvm] 37309fb - Fix spurious warning in ExtensionDependencies.inc [nfc]

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 02:16:50 PDT 2020


Author: serge-sans-paille
Date: 2020-04-30T11:16:37+02:00
New Revision: 37309fb02f60557f18971dc575904c0fc56c91ab

URL: https://github.com/llvm/llvm-project/commit/37309fb02f60557f18971dc575904c0fc56c91ab
DIFF: https://github.com/llvm/llvm-project/commit/37309fb02f60557f18971dc575904c0fc56c91ab.diff

LOG: Fix spurious warning in ExtensionDependencies.inc [nfc]

Added: 
    

Modified: 
    llvm/cmake/modules/AddLLVM.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index cc1c122dce3d..caba91fd8352 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -977,12 +977,12 @@ function(process_llvm_pass_plugins)
               const char* Name;\n\
               const char* RequiredLibraries[1 + 1 + ${llvm_plugin_max_deps_length}];\n\
            };\n\
-           std::array<ExtensionDescriptor, ${llvm_static_extension_count}>  AvailableExtensions{\n")
+           std::array<ExtensionDescriptor, ${llvm_static_extension_count}> AvailableExtensions{\n")
 
       foreach(llvm_extension ${LLVM_STATIC_EXTENSIONS})
         get_property(llvm_plugin_deps TARGET ${llvm_extension} PROPERTY LINK_LIBRARIES)
 
-        file(APPEND "${ExtensionDeps}.tmp" "{\"${llvm_extension}\", {")
+        file(APPEND "${ExtensionDeps}.tmp" "{{\"${llvm_extension}\", {")
         foreach(llvm_plugin_dep ${llvm_plugin_deps})
             # Turn library dependency back to component name, if possible.
             # That way llvm-config can avoid redundant dependencies.
@@ -996,7 +996,7 @@ function(process_llvm_pass_plugins)
         endforeach()
 
         # Self + mandatory trailing null, because the number of RequiredLibraries 
diff ers between extensions.
-        file(APPEND "${ExtensionDeps}.tmp" \"${llvm_extension}\", "nullptr}},\n")
+        file(APPEND "${ExtensionDeps}.tmp" \"${llvm_extension}\", "nullptr}}},\n")
       endforeach()
       file(APPEND "${ExtensionDeps}.tmp" "};\n")
 


        


More information about the llvm-commits mailing list