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/InitTweak.h

    r2be1023 r5f98ce5  
    5454  /// returns the argument if it is a PointerType or ArrayType, else returns NULL
    5555  Type * isPointerType( Type * );
     56
     57  /// returns true if expr is trivially a compile-time constant
     58  bool isConstExpr( Expression * expr );
     59  bool isConstExpr( Initializer * init );
    5660} // namespace
    5761
Note: See TracChangeset for help on using the changeset viewer.