diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-09-04 17:50:54 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-05 06:29:35 +0200 |
commit | 34195aa6cbc3bbe2b0bb38a86a3fb3ad76c40499 (patch) | |
tree | 68d373285e7aa6ecd9ffc5a8240da6ee49f722a3 /src/corelib/global/qcompilerdetection.h | |
parent | eb614cf7e73275c6f7b64ae13fb24e41a1dfa88c (diff) |
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>
Diffstat (limited to 'src/corelib/global/qcompilerdetection.h')
-rw-r--r-- | src/corelib/global/qcompilerdetection.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |