From 8867f10c5a2fec39d7a43b68508f696fcf77c571 Mon Sep 17 00:00:00 2001
From: Emanuel Hoogeveen <emanuel.hoogeveen@gmail.com>
Date: Wed, 22 Feb 2017 15:42:00 -0500
Subject: [PATCH] Bug 1338574 - Assertions.cpp can't use MOZ_CRASH_ANNOTATE, so
 set the crash reason directly. r=froydnj

---
 mfbt/Assertions.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mfbt/Assertions.cpp b/mfbt/Assertions.cpp
index 62630842d67fa..2021d13fd9ca8 100644
--- a/mfbt/Assertions.cpp
+++ b/mfbt/Assertions.cpp
@@ -29,7 +29,7 @@ MOZ_CrashOOL(const char* aFilename, int aLine, const char* aReason)
 #ifdef DEBUG
   MOZ_ReportCrash(aReason, aFilename, aLine);
 #endif
-  MOZ_CRASH_ANNOTATE(aReason);
+  gMozCrashReason = aReason;
   MOZ_REALLY_CRASH(aLine);
 }
 
@@ -59,7 +59,7 @@ MOZ_CrashPrintf(const char* aFilename, int aLine, const char* aFormat, ...)
 #ifdef DEBUG
   MOZ_ReportCrash(sPrintfCrashReason, aFilename, aLine);
 #endif
-  MOZ_CRASH_ANNOTATE(sPrintfCrashReason);
+  gMozCrashReason = sPrintfCrashReason;
   MOZ_REALLY_CRASH(aLine);
 }
 
-- 
GitLab