builtins: silence GCC warning

If the builtins are built with libgcc as the unwind provider on ARM, the exposed
_Unwind_SetIP is a macro.  This results in the following warning due to
expansion of the argument:

warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]

Add a no-op set of parenthesis around the argument that will prevent this
warning.

llvm-svn: 248686
This commit is contained in:
Saleem Abdulrasool 2015-09-27 17:16:46 +00:00
parent 45be64464b
commit 0165015f6c
1 changed files with 5 additions and 5 deletions

View File

@ -194,15 +194,15 @@ __gcc_personality_v0(int version, _Unwind_Action actions,
* Set Instruction Pointer to so we re-enter function * Set Instruction Pointer to so we re-enter function
* at landing pad. The landing pad is created by the compiler * at landing pad. The landing pad is created by the compiler
* to take two parameters in registers. * to take two parameters in registers.
*/ */
_Unwind_SetGR(context, __builtin_eh_return_data_regno(0), _Unwind_SetGR(context, __builtin_eh_return_data_regno(0),
(uintptr_t)exceptionObject); (uintptr_t)exceptionObject);
_Unwind_SetGR(context, __builtin_eh_return_data_regno(1), 0); _Unwind_SetGR(context, __builtin_eh_return_data_regno(1), 0);
_Unwind_SetIP(context, funcStart+landingPad); _Unwind_SetIP(context, (funcStart + landingPad));
return _URC_INSTALL_CONTEXT; return _URC_INSTALL_CONTEXT;
} }
} }
/* No landing pad found, continue unwinding. */ /* No landing pad found, continue unwinding. */
return _URC_CONTINUE_UNWIND; return _URC_CONTINUE_UNWIND;
} }