From 5f3a48e3be0e8a05efcb95a7efebec7bf668856f Mon Sep 17 00:00:00 2001 From: pfg Date: Tue, 26 Nov 2013 15:18:40 +0000 Subject: 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. --- contrib/gcc/cp/decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/gcc') diff --git a/contrib/gcc/cp/decl.c b/contrib/gcc/cp/decl.c index 0bf09d4..c35f74a 100644 --- a/contrib/gcc/cp/decl.c +++ b/contrib/gcc/cp/decl.c @@ -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)); } -- cgit v1.1