Ignore:
Timestamp:
Oct 25, 2021, 2:29:16 PM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
c600df1
Parents:
a36eb2d
Message:

Added a return value to WithGuards::GuardValue? so you can save the old value and set a new one in one statement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/GenInit.cc

    ra36eb2d r148ba7d  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Mon Oct 25 11:10:00 2021
    13 // Update Count     : 185
     12// Last Modified On : Mon Oct 25 13:53:00 2021
     13// Update Count     : 186
    1414//
    1515#include "GenInit.h"
     
    316316        void HoistArrayDimension_NoResolve_New::previsit(
    317317                        const ast::ObjectDecl * decl ) {
    318                 GuardValue( storageClasses );
    319                 storageClasses = decl->storage;
     318                GuardValue( storageClasses ) = decl->storage;
    320319        }
    321320
     
    377376
    378377        void ReturnFixer_New::previsit( const ast::FunctionDecl * decl ) {
    379                 GuardValue( funcDecl );
    380                 funcDecl = decl;
     378                GuardValue( funcDecl ) = decl;
    381379        }
    382380
Note: See TracChangeset for help on using the changeset viewer.