[INFER] Fix uninitialized variable.
authorBrian Hackett <bhackett1024@gmail.com>
Tue, 02 Aug 2011 17:58:48 -0700
changeset 77406 e1508f49adc40818c2c9f3222c93253904bc79bb
parent 77405 f7f014c31f452a80bb7d5e457e374558d3099fb5
child 77407 b93ba97652886898c793752fffc1fae9cb81265a
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone8.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
[INFER] Fix uninitialized variable.
js/src/jsinfer.cpp
--- a/js/src/jsinfer.cpp
+++ b/js/src/jsinfer.cpp
@@ -5572,17 +5572,17 @@ JS_GetTypeInferenceMemoryStats(JSContext
     }
 
     stats->poolMain += ArenaAllocatedSize(compartment->pool);
 }
 
 JS_FRIEND_API(void)
 JS_GetTypeInferenceObjectStats(void *object_, TypeInferenceMemoryStats *stats)
 {
-    TypeObject *object = (TypeObject *) object;
+    TypeObject *object = (TypeObject *) object_;
     stats->objectMain += sizeof(TypeObject);
 
     if (object->singleton) {
         /*
          * Properties and TypeSet data for singletons are allocated in the
          * compartment's analysis pool.
          */
         return;