Bug 1282408 - initialize ret_ in FunctionValidator constructor. r=jdemooij
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Tue, 28 Jun 2016 15:46:52 +0300
changeset 342973 8ab05556d3264ee4799e25ec32baa21ae145fc95
parent 342972 169b7053b22d5f2ddbba4ed6ea99da6348ad5df2
child 342974 48e767f0a73f69782396f8ad8b7523385087b699
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdemooij
bugs1282408
milestone50.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 1282408 - initialize ret_ in FunctionValidator constructor. r=jdemooij MozReview-Commit-ID: GpIcq2CNa8N
js/src/asmjs/AsmJS.cpp
--- a/js/src/asmjs/AsmJS.cpp
+++ b/js/src/asmjs/AsmJS.cpp
@@ -2827,17 +2827,18 @@ class MOZ_STACK_CLASS FunctionValidator
   public:
     FunctionValidator(ModuleValidator& m, ParseNode* fn)
       : m_(m),
         fn_(fn),
         locals_(m.cx()),
         breakLabels_(m.cx()),
         continueLabels_(m.cx()),
         blockDepth_(0),
-        hasAlreadyReturned_(false)
+        hasAlreadyReturned_(false),
+        ret_(ExprType::Limit)
     {}
 
     ModuleValidator& m() const        { return m_; }
     ExclusiveContext* cx() const      { return m_.cx(); }
     ParseNode* fn() const             { return fn_; }
 
     bool init(PropertyName* name, unsigned line) {
         if (!locals_.init() || !breakLabels_.init() || !continueLabels_.init())