From 4a93abc816ee5c68bb893ac0af741cb567a939ed Mon Sep 17 00:00:00 2001 From: Lars T Hansen Date: Thu, 31 Jan 2019 13:48:48 +0100 Subject: [PATCH] Bug 1524201 - add message to static_assert. r=bugfix, CLOSED TREE --- js/src/jit/arm/Assembler-arm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jit/arm/Assembler-arm.cpp b/js/src/jit/arm/Assembler-arm.cpp index c0dd6620c873..869c0aedfe3c 100644 --- a/js/src/jit/arm/Assembler-arm.cpp +++ b/js/src/jit/arm/Assembler-arm.cpp @@ -1115,8 +1115,8 @@ VFPRegister VFPRegister::singleOverlay(unsigned int which) const { return VFPRegister(code_, Single); } -// This is necessary for sintOverlay() to make any kind of sense. -static_assert(FloatRegisters::TotalDouble <= 16); +static_assert(FloatRegisters::TotalDouble <= 16, + "We assume that every Double register also has an Integer personality"); VFPRegister VFPRegister::sintOverlay(unsigned int which) const { MOZ_ASSERT(!_isInvalid);