Bug 1312181 - Add this-> to is<T>() in MOZ_ASSERT in BytecodeEmitter::NestableControl::as() as a workaround for compiler bug. r=ehoogeveen
authorTooru Fujisawa <arai_a@mac.com>
Sun, 23 Oct 2016 01:46:35 +0900
changeset 319051 a5b7320dc15801ce6bfa6709022772714e67abe6
parent 319050 00e511e83e80366c8b2392ff159296dc752ef149
child 319052 eda1ba4d8bedd18200201a185a85de2de7d3f709
push id30858
push userryanvm@gmail.com
push dateSun, 23 Oct 2016 17:17:41 +0000
treeherdermozilla-central@a9a41b69f3f9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehoogeveen
bugs1312181
milestone52.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 1312181 - Add this-> to is<T>() in MOZ_ASSERT in BytecodeEmitter::NestableControl::as() as a workaround for compiler bug. r=ehoogeveen
js/src/frontend/BytecodeEmitter.cpp
--- a/js/src/frontend/BytecodeEmitter.cpp
+++ b/js/src/frontend/BytecodeEmitter.cpp
@@ -114,17 +114,17 @@ class BytecodeEmitter::NestableControl :
         return emitterScope_;
     }
 
     template <typename T>
     bool is() const;
 
     template <typename T>
     T& as() {
-        MOZ_ASSERT(is<T>());
+        MOZ_ASSERT(this->is<T>());
         return static_cast<T&>(*this);
     }
 };
 
 // Template specializations are disallowed in different namespaces; specialize
 // all the NestableControl subtypes up front.
 namespace js {
 namespace frontend {