Bug 1326423 - Fix assertion for optimized build. r=baku, a=jcristau
authorWei-Cheng Pan <wpan@mozilla.com>
Wed, 04 Jan 2017 14:40:56 +0800
changeset 353514 9545084f13f897cce23ba1f0934753e2dbb83f47
parent 353513 39fd680b2e51c6a586c9f438eba53ee55387b61e
child 353515 7b1e59d764d526f2a50d434918cac0386d9dd8ff
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku, jcristau
bugs1326423
milestone52.0a2
Bug 1326423 - Fix assertion for optimized build. r=baku, a=jcristau MozReview-Commit-ID: By3J4RLnJHn
netwerk/ipc/NeckoParent.cpp
--- a/netwerk/ipc/NeckoParent.cpp
+++ b/netwerk/ipc/NeckoParent.cpp
@@ -485,17 +485,18 @@ NeckoParent::DeallocPDataChannelParent(P
   return true;
 }
 
 bool
 NeckoParent::RecvPDataChannelConstructor(PDataChannelParent* actor,
                                          const uint32_t& channelId)
 {
   DataChannelParent* p = static_cast<DataChannelParent*>(actor);
-  MOZ_DIAGNOSTIC_ASSERT(p->Init(channelId));
+  DebugOnly<bool> rv = p->Init(channelId);
+  MOZ_ASSERT(rv);
   return true;
 }
 
 PRtspControllerParent*
 NeckoParent::AllocPRtspControllerParent()
 {
 #ifdef NECKO_PROTOCOL_rtsp
   RtspControllerParent* p = new RtspControllerParent();