diff mbox

[C++] ctor predicates

Message ID 286309f9-3b15-3824-d9cf-e00d21fbf3a1@acm.org
State New
Headers show

Commit Message

Nathan Sidwell July 12, 2017, 7:47 p.m. UTC
On 07/12/2017 03:14 PM, Christophe Lyon wrote:
> Hi Nathan,

> /gccsrc/libcc1/libcp1plugin.cc: In function ‘gcc_decl
> plugin_build_decl(cc1_plugin::connection*,
>  const char*, gcc_cp_symbol_kind, gcc_type, const char*, gcc_address,
> const char*, unsigned int)’:
> /gccsrc/libcc1/libcp1plugin.cc:1422: error: lvalue required as left
> operand of assignment
> /gccsrc/libcc1/libcp1plugin.cc:1424: error: lvalue required as left
> operand of assignment
> make[3]: *** [libcp1plugin.lo] Error 1

whoops, forgot that I had changes there too.  Applied the attached.

nathan
diff mbox

Patch

Index: libcp1plugin.cc
===================================================================
--- libcp1plugin.cc	(revision 250090)
+++ libcp1plugin.cc	(working copy)
@@ -1419,9 +1419,9 @@  plugin_build_decl (cc1_plugin::connectio
       if (ctor || dtor)
 	{
 	  if (ctor)
-	    DECL_CONSTRUCTOR_P (decl) = 1;
+	    DECL_CXX_CONSTRUCTOR_P (decl) = 1;
 	  if (dtor)
-	    DECL_DESTRUCTOR_P (decl) = 1;
+	    DECL_CXX_DESTRUCTOR_P (decl) = 1;
 	}
       else
 	{