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

@ -198,7 +198,7 @@ __gcc_personality_v0(int version, _Unwind_Action actions,
_Unwind_SetGR(context, __builtin_eh_return_data_regno(0),
(uintptr_t)exceptionObject);
_Unwind_SetGR(context, __builtin_eh_return_data_regno(1), 0);
_Unwind_SetIP(context, funcStart+landingPad);
_Unwind_SetIP(context, (funcStart + landingPad));
return _URC_INSTALL_CONTEXT;
}
}