summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_leaf.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-04-04 21:42:26 -0400
committerBenety Goh <benety@mongodb.com>2018-04-04 21:42:26 -0400
commit80f409d1311eb8d20251d17be474aff382538b84 (patch)
treea8134ca8928240b84414f8faf75c7af06119915b /src/mongo/db/matcher/expression_leaf.cpp
parentc3badcbbcf069f428a765ba5937106d1da814076 (diff)
downloadmongo-80f409d1311eb8d20251d17be474aff382538b84.tar.gz
SERVER-34307 replace invariant(false) with MONGO_UNREACHABLE
Diffstat (limited to 'src/mongo/db/matcher/expression_leaf.cpp')
-rw-r--r--src/mongo/db/matcher/expression_leaf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/matcher/expression_leaf.cpp b/src/mongo/db/matcher/expression_leaf.cpp
index f9b82a7939f..c2485fa128a 100644
--- a/src/mongo/db/matcher/expression_leaf.cpp
+++ b/src/mongo/db/matcher/expression_leaf.cpp
@@ -617,7 +617,7 @@ bool BitTestMatchExpression::performBitTest(long long eValue) const {
case BITS_ANY_CLEAR:
return ~eValue & _bitMask;
default:
- invariant(false);
+ MONGO_UNREACHABLE;
}
}
@@ -713,7 +713,7 @@ void BitTestMatchExpression::debugString(StringBuilder& debug, int level) const
debug << "$bitsAnyClear:";
break;
default:
- invariant(false);
+ MONGO_UNREACHABLE;
}
debug << " [";
@@ -749,7 +749,7 @@ void BitTestMatchExpression::serialize(BSONObjBuilder* out) const {
opString = "$bitsAnyClear";
break;
default:
- invariant(false);
+ MONGO_UNREACHABLE;
}
BSONArrayBuilder arrBob;