Bug 1400278 - Fix compilation errors to do with unreachable return statements r=jandem

This commit is contained in:
Jon Coppeard 2017-09-20 13:19:32 +01:00
parent 2934befd2a
commit 0d5497bfb5
5 changed files with 2 additions and 12 deletions

View File

@ -9790,8 +9790,6 @@ BytecodeEmitter::emitIncOrDec(ParseNode* pn)
default:
return emitNameIncDec(pn);
}
return true;
}
// Using MOZ_NEVER_INLINE in here is a workaround for llvm.org/pr14047. See

View File

@ -540,10 +540,8 @@ BaselineInspector::hasSeenDoubleResult(jsbytecode* pc)
if (stub->isUnaryArith_Fallback())
return stub->toUnaryArith_Fallback()->sawDoubleResult();
else
return stub->toBinaryArith_Fallback()->sawDoubleResult();
return false;
return stub->toBinaryArith_Fallback()->sawDoubleResult();
}
JSObject*

View File

@ -255,8 +255,6 @@ ControlFlowGenerator::traverseBytecode()
JSOp op = JSOp(*pc);
pc += CodeSpec[op].length;
}
return true;
}
ControlFlowGenerator::ControlStatus

View File

@ -1316,10 +1316,8 @@ js::EnsureTrackPropertyTypes(JSContext* cx, JSObject* obj, jsid id)
if (obj->hasLazyGroup()) {
AutoEnterOOMUnsafeRegion oomUnsafe;
RootedObject objRoot(cx, obj);
if (!JSObject::getGroup(cx, objRoot)) {
if (!JSObject::getGroup(cx, objRoot))
oomUnsafe.crash("Could not allocate ObjectGroup in EnsureTrackPropertyTypes");
return;
}
}
if (!obj->group()->unknownProperties() && !obj->group()->getProperty(cx, obj, id)) {
MOZ_ASSERT(obj->group()->unknownProperties());

View File

@ -4470,8 +4470,6 @@ CheckSharedArrayAtomicAccess(FunctionValidator& f, ParseNode* viewName, ParseNod
default:
return f.failf(viewName, "not an integer array");
}
return true;
}
static bool