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: