Bug 1282408 - Add ignore-initialization-check annotation to which_ from CalleeDesc. r=jorendorff
authorPaul Bignier <paul.bignier@gmail.com>
Tue, 27 Sep 2016 17:29:33 +0200
changeset 428481 9fbd30932290df8363fdeb6c1923fed39dba9cbc
parent 428480 cc8b3345c2e53e3181f2214a77b86de45b0d000c
child 428482 af2599f1d391fd2cb1c542d58ddb6debdbd87309
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs1282408
milestone57.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 - Add ignore-initialization-check annotation to which_ from CalleeDesc. r=jorendorff
js/src/wasm/WasmTypes.h
--- a/js/src/wasm/WasmTypes.h
+++ b/js/src/wasm/WasmTypes.h
@@ -1454,17 +1454,18 @@ class CalleeDesc
         // Call a C++ function identified by SymbolicAddress.
         Builtin,
 
         // Like Builtin, but automatically passes Instance* as first argument.
         BuiltinInstanceMethod
     };
 
   private:
-    Which which_;
+    // which_ shall be initialized in the static constructors
+    MOZ_INIT_OUTSIDE_CTOR Which which_;
     union U {
         U() {}
         uint32_t funcIndex_;
         struct {
             uint32_t globalDataOffset_;
         } import;
         struct {
             uint32_t globalDataOffset_;