Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    r6ef2d81 rc0aa336  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Feb  9 15:54:59 2017
    13 // Update Count     : 742
     12// Last Modified On : Mon Feb  6 16:01:29 2017
     13// Update Count     : 739
    1414//
    1515
     
    5656                asmName( nullptr ),
    5757                initializer( nullptr ),
    58                 extension( false ),
    59                 asmStmt( nullptr ) {
     58                extension( false ) {
    6059
    6160//      variable.name = nullptr;
     
    7877        delete type;
    7978        delete bitfieldWidth;
    80 
    81         delete asmStmt;
    8279        // asmName, no delete, passed to next stage
    8380        delete initializer;
     
    10198        newnode->initializer = maybeClone( initializer );
    10299        newnode->extension = extension;
    103         newnode->asmStmt = maybeClone( asmStmt );
    104100        newnode->error = error;
    105101
     
    418414}
    419415
    420 DeclarationNode * DeclarationNode::newAsmStmt( StatementNode * stmt ) {
    421         DeclarationNode * newnode = new DeclarationNode;
    422         newnode->asmStmt = stmt;
    423         return newnode;
    424 }
    425 
    426416void appendError( string & dst, const string & src ) {
    427417        if ( src.empty() ) return;
     
    505495                return this;
    506496        } // if
     497
     498        checkQualifiers( q->type, type );
     499        addQualifiersToType( q->type, type );
    507500
    508501        if ( q->type->forall ) {
     
    520513                q->type->forall = nullptr;
    521514        } // if
    522 
    523         checkQualifiers( q->type, type );
    524         addQualifiersToType( q->type, type );
    525 
    526515        delete q;
    527516        return this;
     
    991980Declaration * DeclarationNode::build() const {
    992981        if ( ! error.empty() ) throw SemanticError( error + " in declaration of ", this );
    993 
    994         if ( asmStmt ) {
    995                 return new AsmDecl( safe_dynamic_cast<AsmStmt *>( asmStmt->build() ) );
    996         } // if
    997982
    998983//      if ( variable.name ) {
Note: See TracChangeset for help on using the changeset viewer.