compilation failure with clang 9
https://bugs.webkit.org/show_bug.cgi?id=197911
Patch by Víctor Manuel Jáquez Leal <vjaquez@igalia.com> on 2019-05-15
Reviewed by Alex Christensen.
Use std namespace for nullptr_t in tagArrayPtr templates.
* wtf/PtrTag.h:
(WTF::tagArrayPtr):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@245325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WTF/ChangeLog b/Source/WTF/ChangeLog
index 6bc60aa..a421f4d 100644
--- a/Source/WTF/ChangeLog
+++ b/Source/WTF/ChangeLog
@@ -1,3 +1,15 @@
+2019-05-15 Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
+
+ compilation failure with clang 9
+ https://bugs.webkit.org/show_bug.cgi?id=197911
+
+ Reviewed by Alex Christensen.
+
+ Use std namespace for nullptr_t in tagArrayPtr templates.
+
+ * wtf/PtrTag.h:
+ (WTF::tagArrayPtr):
+
2019-05-14 Commit Queue <commit-queue@webkit.org>
Unreviewed, rolling out r245281.
diff --git a/Source/WTF/wtf/PtrTag.h b/Source/WTF/wtf/PtrTag.h
index a0e7856..14349bd 100644
--- a/Source/WTF/wtf/PtrTag.h
+++ b/Source/WTF/wtf/PtrTag.h
@@ -123,7 +123,7 @@
template<typename T>
-inline T* tagArrayPtr(nullptr_t ptr, size_t length)
+inline T* tagArrayPtr(std::nullptr_t ptr, size_t length)
{
ASSERT(!length);
return ptrauth_sign_unauthenticated(static_cast<T*>(ptr), ptrauth_key_process_dependent_data, length);
@@ -428,7 +428,7 @@
inline void reportBadTag(const void*, PtrTag) { }
template<typename T>
-inline T* tagArrayPtr(nullptr_t, size_t size)
+inline T* tagArrayPtr(std::nullptr_t, size_t size)
{
ASSERT_UNUSED(size, !size);
return nullptr;