Bug 1270811 - initialize |current_| in GraphStoreInfo. r=h4writer
authorAndi-Bogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Fri, 06 May 2016 15:00:31 +0300
changeset 296809 7bab57b555e02c675a436b28bff536280eae2270
parent 296785 39d2501ceed3d1a87b1fbf79e7729e6d4f1a34df
child 296810 75452b28001fc0a055166366522c9ee2bd266ad9
push id30247
push userkwierso@gmail.com
push dateTue, 10 May 2016 22:20:29 +0000
treeherdermozilla-central@674a55274378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersh4writer
bugs1270811
milestone49.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 1270811 - initialize |current_| in GraphStoreInfo. r=h4writer 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() {