diff --git a/llvm/unittests/Support/ScopedPrinterTest.cpp b/llvm/unittests/Support/ScopedPrinterTest.cpp index 48600cd057506..1b2d03bedaaa6 100644 --- a/llvm/unittests/Support/ScopedPrinterTest.cpp +++ b/llvm/unittests/Support/ScopedPrinterTest.cpp @@ -512,12 +512,12 @@ FirstSecondThirdByteMask [ (0x333) TEST_F(ScopedPrinterTest, PrintNumber) { constexpr float MaxFloat = std::numeric_limits::max(); constexpr float MinFloat = std::numeric_limits::min(); - constexpr float InfFloat = std::numeric_limits::infinity(); - const float NaNFloat = std::nanf("1"); + // constexpr float InfFloat = std::numeric_limits::infinity(); + // const float NaNFloat = std::nanf("1"); constexpr double MaxDouble = std::numeric_limits::max(); constexpr double MinDouble = std::numeric_limits::min(); - constexpr double InfDouble = std::numeric_limits::infinity(); - const double NaNDouble = std::nan("1"); + // constexpr double InfDouble = std::numeric_limits::infinity(); + // const double NaNDouble = std::nan("1"); auto PrintFunc = [&](ScopedPrinter &W) { uint64_t Unsigned64Max = std::numeric_limits::max();