Forced commit to note that r258652 is actually:
gcc: Move conditions before an assert. It is a bit cleaner to check the conditions before calling the assertion. It also preserves the style from the rest of the code. This is just a cosmetical change to match better what both Apple's gcc42 and Android's gcc-4.2.1 do.
This commit is contained in:
parent
db8e31dfdd
commit
346d5f0202
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258653
@ -4966,7 +4966,7 @@ make_rtl_for_nonlocal_decl (tree decl, tree init, const char* asmspec)
|
||||
{
|
||||
gcc_assert (TREE_STATIC (decl));
|
||||
/* An in-class declaration of a static data member should be
|
||||
external; it is only a declaration, and not a definition. */
|
||||
external; it is only a declaration, and not a definition. */
|
||||
if (init == NULL_TREE && DECL_INITIAL (decl) == NULL_TREE)
|
||||
gcc_assert (DECL_EXTERNAL (decl));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user