Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE in mfbt. r=Waldo
authorChris Peterson <cpeterson@mozilla.com>
Sun, 13 Apr 2014 23:01:08 -0700
changeset 182303 e69f4a011613aac0afae6ec1eeb64f3528caf4a6
parent 182302 8c25478e68dc2068baeb3fbca9701d855c989eaf
child 182304 c648f92111725f6a8580aa7f1b39844b2ab25368
push id26755
push usercbook@mozilla.com
push dateFri, 09 May 2014 11:54:47 +0000
treeherdermozilla-central@5700a88f895f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs990764
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE in mfbt. r=Waldo
mfbt/Array.h
mfbt/decimal/moz-decimal-utils.h
--- a/mfbt/Array.h
+++ b/mfbt/Array.h
@@ -33,19 +33,19 @@ class Array
     }
 };
 
 template<typename T>
 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");
     }
 };
 
 }  /* namespace mozilla */
 
 #endif /* mozilla_Array_h */
--- a/mfbt/decimal/moz-decimal-utils.h
+++ b/mfbt/decimal/moz-decimal-utils.h
@@ -27,17 +27,17 @@
 #define UINT64_C(c) (c ## ULL)
 #endif
 
 #ifdef ASSERT
 #undef ASSERT
 #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: \
     ClassName(const ClassName&) MOZ_DELETE; \
     void operator=(const ClassName&) MOZ_DELETE;
 
 #if defined(_MSC_VER)
 namespace std {