[Win64] Compile fix.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Oct 2016 15:36:00 +0000 (15:36 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Oct 2016 15:36:00 +0000 (15:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=163384

Reviewed by Brent Fulgham.

Fix use of potentially uninitialized variable.

* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207289 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp

index ba31048..98113c9 100644 (file)
@@ -1,3 +1,15 @@
+2016-10-13  Per Arne Vollan  <pvollan@apple.com>
+
+        [Win64] Compile fix.
+        https://bugs.webkit.org/show_bug.cgi?id=163384
+
+        Reviewed by Brent Fulgham.
+
+        Fix use of potentially uninitialized variable.
+
+        * dfg/DFGSpeculativeJIT64.cpp:
+        (JSC::DFG::SpeculativeJIT::compile):
+
 2016-10-12  Chris Dumez  <cdumez@apple.com>
 
         [Web IDL] Drop support for legacy [ConstructorConditional=*]
index 335ccc7..b9dd99f 100644 (file)
@@ -4638,7 +4638,7 @@ void SpeculativeJIT::compile(Node* node)
             GPRTemporary result(this);
             Optional<GPRTemporary> temp;
 
-            GPRReg tempGPR;
+            GPRReg tempGPR = InvalidGPRReg;
             if (node->child1().useKind() == CellUse) {
                 temp = GPRTemporary(this);
                 tempGPR = temp->gpr();