mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE in mfbt. r=Waldo
This commit is contained in:
parent
17896eb5d7
commit
e1a6042c4b
@ -38,11 +38,11 @@ class Array<T, 0>
|
||||
{
|
||||
public:
|
||||
T& operator[](size_t i) {
|
||||
MOZ_ASSUME_UNREACHABLE("indexing into zero-length array");
|
||||
MOZ_CRASH("indexing into zero-length array");
|
||||
}
|
||||
|
||||
const T& operator[](size_t i) const {
|
||||
MOZ_ASSUME_UNREACHABLE("indexing into zero-length array");
|
||||
MOZ_CRASH("indexing into zero-length array");
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
#endif
|
||||
#define ASSERT MOZ_ASSERT
|
||||
|
||||
#define ASSERT_NOT_REACHED() MOZ_ASSUME_UNREACHABLE("moz-decimal-utils.h")
|
||||
#define ASSERT_NOT_REACHED() MOZ_ASSERT_UNREACHABLE("moz-decimal-utils.h")
|
||||
|
||||
#define WTF_MAKE_NONCOPYABLE(ClassName) \
|
||||
private: \
|
||||
|
Loading…
x
Reference in New Issue
Block a user