[llvm] e35a587 - Revert "[StackSafety,NFC] Remove unneded constexpr"

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 05:43:20 PDT 2020


Author: Alexey Bataev
Date: 2020-07-01T08:41:45-04:00
New Revision: e35a5876e4c7f67211dd600a3006bede2ccab25c

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

LOG: Revert "[StackSafety,NFC] Remove unneded constexpr"

This reverts commit 38470baa542bde038340b7d10a0ed2c25fac1bfa because it
breaks builds with lld and gold linkers.

Added: 
    

Modified: 
    llvm/lib/IR/ModuleSummaryIndex.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp
index 158369a80aca..91612eafada7 100644
--- a/llvm/lib/IR/ModuleSummaryIndex.cpp
+++ b/llvm/lib/IR/ModuleSummaryIndex.cpp
@@ -35,6 +35,8 @@ static cl::opt<bool> ImportConstantsWithRefs(
     "import-constants-with-refs", cl::init(true), cl::Hidden,
     cl::desc("Import constant global variables with references"));
 
+constexpr uint32_t FunctionSummary::ParamAccess::RangeWidth;
+
 FunctionSummary FunctionSummary::ExternalNode =
     FunctionSummary::makeDummyFunctionSummary({});
 


        


More information about the llvm-commits mailing list