Fix ASSERT_VALID_CODE_POINTER for our ARM builds
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 17 Oct 2013 08:45:13 +0000 (10:45 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 17 Oct 2013 09:36:32 +0000 (11:36 +0200)
commit4deb9338c595543580d2462dee889bcb7f7fc4d6
tree4a2b7fbb8eca96f4e4475f03eb032be4775d3df4
parent0640fbc8e53644facf199ab0bd3a7414cf149068
Fix ASSERT_VALID_CODE_POINTER for our ARM builds

We want to allow intermixing thumb and ARM for all builds, not only Android.
Modified the macro to do a thumb-compatible null pointer check.

This also works around a miscompilation on QNX where the compiler appeared to
make incorrect assumptions about the address of functions we are taking.

Change-Id: Ib8fc400178e0c2621bde2ca94b3f94041591e19a
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/3rdparty/masm/assembler/MacroAssemblerCodeRef.h