Bug 1430053 followup - Use this-> in Cell::as() to work around a weird intermittent compiler error. r=me
authorJan de Mooij <jdemooij@mozilla.com>
Thu, 18 Jan 2018 14:02:03 +0100
changeset 454143 e7d03e11f55a7f9d3dd22017cfeb8a88634f2626
parent 454142 2e91a03fa6b8e72435aed05993dff55ec4ce0047
child 454144 51d4b45e54e3ee85e1bef88b3def5369fb70ad21
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1430053
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1430053 followup - Use this-> in Cell::as() to work around a weird intermittent compiler error. r=me
js/src/gc/Cell.h
--- a/js/src/gc/Cell.h
+++ b/js/src/gc/Cell.h
@@ -78,23 +78,23 @@ struct Cell
 
     template <class T>
     inline bool is() const {
         return getTraceKind() == JS::MapTypeToTraceKind<T>::kind;
     }
 
     template<class T>
     inline T* as() {
-        MOZ_ASSERT(is<T>());
+        MOZ_ASSERT(this->is<T>());
         return static_cast<T*>(this);
     }
 
     template <class T>
     inline const T* as() const {
-        MOZ_ASSERT(is<T>());
+        MOZ_ASSERT(this->is<T>());
         return static_cast<const T*>(this);
     }
 
 #ifdef DEBUG
     inline bool isAligned() const;
     void dump(GenericPrinter& out) const;
     void dump() const;
 #endif