Ignore:
Timestamp:
Jul 19, 2016, 7:09:30 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
40e636a
Parents:
2be1023
Message:

hoist non-constexpr array dimension into const variable in case of side effects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixGlobalInit.cc

    r2be1023 r5f98ce5  
    7979                bool isConstExpr;
    8080        };
     81
     82        bool isConstExpr( Expression * expr ) {
     83                if ( expr ) {
     84                        ConstExprChecker checker;
     85                        expr->accept( checker );
     86                        return checker.isConstExpr;
     87                }
     88                return true;
     89        }
    8190
    8291        bool isConstExpr( Initializer * init ) {
Note: See TracChangeset for help on using the changeset viewer.