[libc-commits] [libc] 70c9152 - [libc] Fix non-calls to cpp::is_complex_type_same (#121257)
via libc-commits
libc-commits at lists.llvm.org
Mon Dec 30 14:35:34 PST 2024
Author: Roland McGrath
Date: 2024-12-30T14:35:31-08:00
New Revision: 70c9152f99818ffd0342260ae12d709268031235
URL: https://github.com/llvm/llvm-project/commit/70c9152f99818ffd0342260ae12d709268031235
DIFF: https://github.com/llvm/llvm-project/commit/70c9152f99818ffd0342260ae12d709268031235.diff
LOG: [libc] Fix non-calls to cpp::is_complex_type_same (#121257)
Some uses were not actually calls, just references to the name.
Added:
Modified:
libc/test/UnitTest/FPMatcher.h
Removed:
################################################################################
diff --git a/libc/test/UnitTest/FPMatcher.h b/libc/test/UnitTest/FPMatcher.h
index 9f2bae3279208b..b8e240bf328ce1 100644
--- a/libc/test/UnitTest/FPMatcher.h
+++ b/libc/test/UnitTest/FPMatcher.h
@@ -131,11 +131,11 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
else if constexpr (cpp::is_complex_type_same<T, _Complex long double>())
return matchComplex<long double>();
#ifdef LIBC_TYPES_HAS_CFLOAT16
- else if constexpr (cpp::is_complex_type_same<T, cfloat16>)
+ else if constexpr (cpp::is_complex_type_same<T, cfloat16>())
return matchComplex<float16>();
#endif
#ifdef LIBC_TYPES_HAS_CFLOAT128
- else if constexpr (cpp::is_complex_type_same<T, cfloat128>)
+ else if constexpr (cpp::is_complex_type_same<T, cfloat128>())
return matchComplex<float128>();
#endif
}
@@ -148,11 +148,11 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
else if constexpr (cpp::is_complex_type_same<T, _Complex long double>())
return explainErrorComplex<long double>();
#ifdef LIBC_TYPES_HAS_CFLOAT16
- else if constexpr (cpp::is_complex_type_same<T, cfloat16>)
+ else if constexpr (cpp::is_complex_type_same<T, cfloat16>())
return explainErrorComplex<float16>();
#endif
#ifdef LIBC_TYPES_HAS_CFLOAT128
- else if constexpr (cpp::is_complex_type_same<T, cfloat128>)
+ else if constexpr (cpp::is_complex_type_same<T, cfloat128>())
return explainErrorComplex<float128>();
#endif
}
More information about the libc-commits
mailing list