From 96ff6d8772ebe768c04e7c56855190c57e27ffd6 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Wed, 5 Sep 2018 15:19:43 +0000 Subject: [PATCH] [XRay] Use `const` instead of `constexpr` in storage declaration This should make MSVC happy with the storage provided for static constexpr character arrays out-of-line. Follow-up to D51672. llvm-svn: 341477 --- llvm/unittests/XRay/FDRRecordPrinterTest.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/llvm/unittests/XRay/FDRRecordPrinterTest.cpp b/llvm/unittests/XRay/FDRRecordPrinterTest.cpp index f0666ecdd34e..e479d1219e91 100644 --- a/llvm/unittests/XRay/FDRRecordPrinterTest.cpp +++ b/llvm/unittests/XRay/FDRRecordPrinterTest.cpp @@ -28,7 +28,7 @@ template <> struct Helper { static constexpr char Expected[] = ""; }; -constexpr char Helper::Expected[]; +const char Helper::Expected[]; template <> struct Helper { static std::unique_ptr construct() { @@ -37,7 +37,7 @@ template <> struct Helper { static constexpr char Expected[] = ""; }; -constexpr char Helper::Expected[]; +const char Helper::Expected[]; template <> struct Helper { static std::unique_ptr construct() { @@ -46,7 +46,7 @@ template <> struct Helper { static constexpr char Expected[] = ""; }; -constexpr char Helper::Expected[]; +const char Helper::Expected[]; template <> struct Helper { static std::unique_ptr construct() { @@ -55,7 +55,7 @@ template <> struct Helper { static constexpr char Expected[] = ""; }; -constexpr char Helper::Expected[]; +const char Helper::Expected[]; template <> struct Helper { static std::unique_ptr construct() { @@ -65,7 +65,7 @@ template <> struct Helper { static constexpr char Expected[] = ""; }; -constexpr char Helper::Expected[]; +const char Helper::Expected[]; template <> struct Helper { static std::unique_ptr construct() { @@ -74,7 +74,7 @@ template <> struct Helper { static constexpr char Expected[] = ""; }; -constexpr char Helper::Expected[]; +const char Helper::Expected[]; template <> struct Helper { static std::unique_ptr construct() { @@ -83,7 +83,7 @@ template <> struct Helper { static constexpr char Expected[] = ""; }; -constexpr char Helper::Expected[]; +const char Helper::Expected[]; template <> struct Helper { static std::unique_ptr construct() { @@ -92,7 +92,7 @@ template <> struct Helper { static constexpr char Expected[] = ""; }; -constexpr char Helper::Expected[]; +const char Helper::Expected[]; template <> struct Helper { static std::unique_ptr construct() { @@ -101,7 +101,7 @@ template <> struct Helper { static constexpr char Expected[] = ""; }; -constexpr char Helper::Expected[]; +const char Helper::Expected[]; template class PrinterTest : public ::testing::Test { protected: