Bug 875917 - Add braces to an if which has braces on its else. r=sstangl
authorDan Gohman <sunfish@google.com>
Thu, 13 Jun 2013 10:23:21 -0700
changeset 134970 5c085ef24d2c278002d8c215497f5967c9c2d5e5
parent 134969 07a993bc014140c86822c8484001af97799209da
child 134971 7d95868cd23fcb197f59b19b990551b532b07282
push id24820
push useremorley@mozilla.com
push dateFri, 14 Jun 2013 08:55:35 +0000
treeherdermozilla-central@b7dbf40666b1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssstangl
bugs875917
milestone24.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 875917 - Add braces to an if which has braces on its else. r=sstangl
js/src/ion/x86/CodeGenerator-x86.cpp
--- a/js/src/ion/x86/CodeGenerator-x86.cpp
+++ b/js/src/ion/x86/CodeGenerator-x86.cpp
@@ -498,19 +498,19 @@ CodeGeneratorX86::visitAsmJSLoadHeap(LAs
     uint32_t after = masm.size();
     masm.bind(ool->rejoin());
     return gen->noteHeapAccess(AsmJSHeapAccess(cmp.offset(), before, after, vt, ToAnyRegister(out)));
 }
 
 bool
 CodeGeneratorX86::visitOutOfLineLoadTypedArrayOutOfBounds(OutOfLineLoadTypedArrayOutOfBounds *ool)
 {
-    if (ool->dest().isFloat())
+    if (ool->dest().isFloat()) {
         masm.movsd(&js_NaN, ool->dest().fpu());
-    else {
+    } else {
         Register destReg = ool->dest().gpr();
         masm.xorl(destReg, destReg);
     }
     masm.jmp(ool->rejoin());
     return true;
 }
 
 void