[llvm] e307eeb - Do not declare compiler extension member as const

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 24 02:46:45 PDT 2020


Author: serge-sans-paille
Date: 2020-04-24T11:44:42+02:00
New Revision: e307eeba0137700e75893089cf0de03383d851ca

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

LOG: Do not declare compiler extension member as const

It keeps them default constructible.

Added: 
    

Modified: 
    llvm/cmake/modules/AddLLVM.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index ba720d49acb9..ea4967dc38d3 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -969,7 +969,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-commits mailing list