Ignore:
Timestamp:
Jun 7, 2017, 1:48:19 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
ade20d0, e4d829b
Parents:
10e90cb
Message:

add unused attribute to function return variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r10e90cb rc6d2e93  
    6666#include "ResolvExpr/typeops.h"
    6767
     68#include "SynTree/Attribute.h"
    6869#include "SynTree/Expression.h"
    6970#include "SynTree/Mutator.h"
     
    927928                                ret->set_name( toString( "_retval_", CodeGen::genName( functionDecl ) ) );
    928929                        }
     930                        ret->get_attributes().push_back( new Attribute( "unused" ) );
    929931                }
    930932        }
Note: See TracChangeset for help on using the changeset viewer.