Unreviewed, further attempt to fix clang 3.8 build
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2019 18:03:39 +0000 (18:03 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2019 18:03:39 +0000 (18:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195947

* wtf/MetaAllocator.cpp:
(WTF::MetaAllocator::allocate):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243216 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/MetaAllocator.cpp

index 5acff9f..9b823ee 100644 (file)
@@ -1,5 +1,13 @@
 2019-03-20  Michael Catanzaro  <mcatanzaro@igalia.com>
 
+        Unreviewed, further attempt to fix clang 3.8 build
+        https://bugs.webkit.org/show_bug.cgi?id=195947
+
+        * wtf/MetaAllocator.cpp:
+        (WTF::MetaAllocator::allocate):
+
+2019-03-20  Michael Catanzaro  <mcatanzaro@igalia.com>
+
         REGRESSION(r243115) breaks build for clang 3.8
         https://bugs.webkit.org/show_bug.cgi?id=195947
 
index c3b6937..8b76dde 100644 (file)
@@ -194,7 +194,7 @@ RefPtr<MetaAllocatorHandle> MetaAllocator::allocate(size_t sizeInBytes, void* ow
     if (UNLIKELY(!!m_tracker))
         m_tracker->notify(handle.ptr());
 
-    return handle;
+    return RefPtr<MetaAllocatorHandle> { WTFMove(handle) };
 }
 
 MetaAllocator::Statistics MetaAllocator::currentStatistics()