summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Seyster <justin.seyster@mongodb.com>2022-03-31 22:58:42 -0400
committerJustin Seyster <justin.seyster@mongodb.com>2022-03-31 22:58:42 -0400
commit1772391b98c2b9bcccaacb36a7c6e9181be02788 (patch)
tree8ecc0b547ff6cb137b4a0dfe04dd4c3950f3be54
parent92d12679edfc7018a8695df2035dc5635aea96ac (diff)
downloadmongo-jseyster/revert-ice-workaround.tar.gz
Remove the workaround added to suppress an ICE.jseyster/revert-ice-workaround
-rw-r--r--src/third_party/mozjs/extract/js/src/jit/CacheIRCompiler.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/third_party/mozjs/extract/js/src/jit/CacheIRCompiler.cpp b/src/third_party/mozjs/extract/js/src/jit/CacheIRCompiler.cpp
index 971cf006f8a..fef999736ea 100644
--- a/src/third_party/mozjs/extract/js/src/jit/CacheIRCompiler.cpp
+++ b/src/third_party/mozjs/extract/js/src/jit/CacheIRCompiler.cpp
@@ -6375,64 +6375,32 @@ bool CacheIRCompiler::emitCompareBigIntStringResult(JSOp op,
switch (op) {
case JSOp::Eq: {
-#ifndef _MSC_VER
constexpr auto Equal = EqualityKind::Equal;
-#else
- // The static_cast works around an internal compiler error in MSVC.
- constexpr auto Equal = static_cast<bool>(EqualityKind::Equal);
-#endif
callvm.call<FnBigIntString, BigIntStringEqual<Equal>>();
break;
}
case JSOp::Ne: {
-#ifndef _MSC_VER
constexpr auto NotEqual = EqualityKind::NotEqual;
-#else
- // The static_cast works around an internal compiler error in MSVC.
- constexpr auto NotEqual = static_cast<bool>(EqualityKind::NotEqual);
-#endif
callvm.call<FnBigIntString, BigIntStringEqual<NotEqual>>();
break;
}
case JSOp::Lt: {
-#ifndef _MSC_VER
constexpr auto LessThan = ComparisonKind::LessThan;
-#else
- // The static_cast works around an internal compiler error in MSVC.
- constexpr auto LessThan = static_cast<bool>(ComparisonKind::LessThan);
-#endif
callvm.call<FnBigIntString, BigIntStringCompare<LessThan>>();
break;
}
case JSOp::Gt: {
-#ifndef _MSC_VER
constexpr auto LessThan = ComparisonKind::LessThan;
-#else
- // The static_cast works around an internal compiler error in MSVC.
- constexpr auto LessThan = static_cast<bool>(ComparisonKind::LessThan);
-#endif
callvm.call<FnStringBigInt, StringBigIntCompare<LessThan>>();
break;
}
case JSOp::Le: {
-#ifndef _MSC_VER
constexpr auto GreaterThanOrEqual = ComparisonKind::GreaterThanOrEqual;
-#else
- // The static_cast works around an internal compiler error in MSVC.
- constexpr auto GreaterThanOrEqual =
- static_cast<bool>(ComparisonKind::GreaterThanOrEqual);
-#endif
callvm.call<FnStringBigInt, StringBigIntCompare<GreaterThanOrEqual>>();
break;
}
case JSOp::Ge: {
-#ifndef _MSC_VER
constexpr auto GreaterThanOrEqual = ComparisonKind::GreaterThanOrEqual;
-#else
- // The static_cast works around an internal compiler error in MSVC.
- constexpr auto GreaterThanOrEqual =
- static_cast<bool>(ComparisonKind::GreaterThanOrEqual);
-#endif
callvm.call<FnBigIntString, BigIntStringCompare<GreaterThanOrEqual>>();
break;
}