[llvm-branch-commits] [llvm] 2f6b23d - Do not declare compiler extension member as const

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 17 17:36:08 PDT 2020


Author: serge-sans-paille
Date: 2020-06-17T16:57:30-07:00
New Revision: 2f6b23d4d00ce08e71f1046158efe209aa01fcd1

URL: https://github.com/llvm/llvm-project/commit/2f6b23d4d00ce08e71f1046158efe209aa01fcd1
DIFF: https://github.com/llvm/llvm-project/commit/2f6b23d4d00ce08e71f1046158efe209aa01fcd1.diff

LOG: Do not declare compiler extension member as const

It keeps them default constructible.

(cherry picked from commit e307eeba0137700e75893089cf0de03383d851ca)

Added: 
    

Modified: 
    llvm/cmake/modules/AddLLVM.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 37387e0fc542..bf9f3fc834d2 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -964,7 +964,7 @@ function(process_llvm_pass_plugins)
           "#include <array>\n\
            struct ExtensionDescriptor {\n\
               const char* Name;\n\
-              const char* const RequiredLibraries[1 + 1 + ${llvm_plugin_max_deps_length}];\n\
+              const char* RequiredLibraries[1 + 1 + ${llvm_plugin_max_deps_length}];\n\
            };\n\
            std::array<ExtensionDescriptor, ${llvm_static_extension_count}>  AvailableExtensions{\n")
 


        


More information about the llvm-branch-commits mailing list