From 58ce9056c80cd2253df988eefcd7764e1056579b Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Sun, 31 Mar 2019 11:48:49 +0400 Subject: Handle __assert() function as handleAssertFail. This assert variant is used on FreeBSD --- lib/Core/SpecialFunctionHandler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Core') diff --git a/lib/Core/SpecialFunctionHandler.cpp b/lib/Core/SpecialFunctionHandler.cpp index 384481f8..e18d3534 100644 --- a/lib/Core/SpecialFunctionHandler.cpp +++ b/lib/Core/SpecialFunctionHandler.cpp @@ -69,6 +69,7 @@ static SpecialFunctionHandler::HandlerInfo handlerInfo[] = { true, false, false } addDNR("__assert_rtn", handleAssertFail), addDNR("__assert_fail", handleAssertFail), + addDNR("__assert", handleAssertFail), addDNR("_assert", handleAssert), addDNR("abort", handleAbort), addDNR("_exit", handleExit), -- cgit 1.4.1