From 7e8f9d579ccb8e473855cb466bd77c89fada1483 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 24 Aug 2019 15:46:49 +0000 Subject: [PATCH] Try to make MSVC 2017 happy. AArch64BaseInfo.h(316): error C3615: constexpr function 'llvm::SysAlias::SysAlias' cannot result in a constant expression AArch64BaseInfo.h(316): note: failure was caused by call of undefined function or one not declared 'constexpr' AArch64BaseInfo.h(316): note: see usage of 'llvm::FeatureBitset::FeatureBitset' llvm-svn: 369851 --- llvm/include/llvm/MC/SubtargetFeature.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/MC/SubtargetFeature.h b/llvm/include/llvm/MC/SubtargetFeature.h index 9bd94efcb01c..7ce27843c2cd 100644 --- a/llvm/include/llvm/MC/SubtargetFeature.h +++ b/llvm/include/llvm/MC/SubtargetFeature.h @@ -50,7 +50,7 @@ protected: } public: - FeatureBitset() = default; + constexpr FeatureBitset() = default; constexpr FeatureBitset(std::initializer_list Init) { for (auto I : Init) set(I);