Bug 1270811 - initialize |current_| in GraphStoreInfo. r?jdemooij draft
authorAndi-Bogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Fri, 06 May 2016 15:00:31 +0300
changeset 364346 ab081561af461bb757066224838c8b7acbff44da
parent 363870 e5a10bc7dac4ee2453d8319165c1f6578203eac7
child 520236 022e7771f9c833a30fa703b2d35b4b8af011d38b
push id17412
push userBogdan.Postelnicu@softvision.ro
push dateFri, 06 May 2016 12:01:04 +0000
reviewersjdemooij
bugs1270811
milestone49.0a1
Bug 1270811 - initialize |current_| in GraphStoreInfo. r?jdemooij MozReview-Commit-ID: JWFHDDr6xWT
js/src/jit/FlowAliasAnalysis.cpp
--- a/js/src/jit/FlowAliasAnalysis.cpp
+++ b/js/src/jit/FlowAliasAnalysis.cpp
@@ -75,17 +75,18 @@ class GraphStoreInfo : public TempObject
     // Only keeping the info during iteration if needed, else contains nullptr.
     GraphStoreVector stores_;
 
     // All BlockStoreInfo's that aren't needed anymore and can be reused.
     GraphStoreVector empty_;
 
   public:
     explicit GraphStoreInfo(TempAllocator& alloc)
-      : stores_(alloc),
+      : current_(nullptr),
+        stores_(alloc),
         empty_(alloc)
     { }
 
     bool reserve(size_t num) {
         return stores_.appendN(nullptr, num);
     }
 
     BlockStoreInfo& current() {