[libc-commits] [libc] a39fb30 - [libc] Fix usage of std::nullptr_t in LibcTest.h. (#114321)

via libc-commits libc-commits at lists.llvm.org
Wed Oct 30 16:08:50 PDT 2024


Author: lntue
Date: 2024-10-30T19:08:47-04:00
New Revision: a39fb30a4928eef0619bcfaa709645309dff32f9

URL: https://github.com/llvm/llvm-project/commit/a39fb30a4928eef0619bcfaa709645309dff32f9
DIFF: https://github.com/llvm/llvm-project/commit/a39fb30a4928eef0619bcfaa709645309dff32f9.diff

LOG: [libc] Fix usage of std::nullptr_t in LibcTest.h. (#114321)

Added: 
    

Modified: 
    libc/test/UnitTest/LibcTest.h

Removed: 
    


################################################################################
diff  --git a/libc/test/UnitTest/LibcTest.h b/libc/test/UnitTest/LibcTest.h
index 1707c3c0fdcfad..b4e3819ea958de 100644
--- a/libc/test/UnitTest/LibcTest.h
+++ b/libc/test/UnitTest/LibcTest.h
@@ -165,7 +165,7 @@ class Test {
   // Helper to allow macro invocations like `ASSERT_EQ(foo, nullptr)`.
   template <typename ValType,
             cpp::enable_if_t<cpp::is_pointer_v<ValType>, ValType> = nullptr>
-  bool test(TestCond Cond, ValType LHS, std::nullptr_t, const char *LHSStr,
+  bool test(TestCond Cond, ValType LHS, cpp::nullptr_t, const char *LHSStr,
             const char *RHSStr, internal::Location Loc) {
     return test(Cond, LHS, static_cast<ValType>(nullptr), LHSStr, RHSStr, Loc);
   }


        


More information about the libc-commits mailing list