From 34195aa6cbc3bbe2b0bb38a86a3fb3ad76c40499 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 4 Sep 2013 17:50:54 -0700 Subject: ICC supports __builtin_unreachable(), so use it __assume(0) is not strong enough in some cases. Change-Id: Ifac42a58af891d636e3e0b2fa476da787bd0d1ce Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com> --- src/corelib/global/qcompilerdetection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib') diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 41e11ea652..767d41701e 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -151,7 +151,7 @@ /* Intel C++ also masquerades as GCC */ # define Q_CC_INTEL # define Q_ASSUME_IMPL(expr) __assume(expr) -# define Q_UNREACHABLE_IMPL() __assume(0) +# define Q_UNREACHABLE_IMPL() __builtin_unreachable() # elif defined(__clang__) /* Clang also masquerades as GCC */ # define Q_CC_CLANG -- cgit v1.2.3