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>
This commit is contained in:
Thiago Macieira 2013-09-04 17:50:54 -07:00 committed by The Qt Project
parent eb614cf7e7
commit 34195aa6cb

View File

@ -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