From 1b6a7cf736302f1b14d14fb68de7489a96f15785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Thu, 12 Feb 2015 11:33:15 +0100 Subject: [PATCH] Safe assert --- libevmjit/ExecStats.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libevmjit/ExecStats.cpp b/libevmjit/ExecStats.cpp index d8668f636..18419d9e0 100644 --- a/libevmjit/ExecStats.cpp +++ b/libevmjit/ExecStats.cpp @@ -13,7 +13,9 @@ namespace jit void ExecStats::stateChanged(ExecState _state) { - assert(m_state != ExecState::Finished); + if (!CHECK(m_state != ExecState::Finished)) + return; + auto now = clock::now(); if (_state != ExecState::Started) {