Changeset 47534159 for src/Parser
- Timestamp:
- Dec 4, 2015, 2:55:22 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 000b914, 63db3d76
- Parents:
- f8b961b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
rf8b961b r47534159 586 586 } 587 587 case OperatorNode::AlignOf: 588 { 589 if ( TypeValueNode * arg = dynamic_cast<TypeValueNode *>( get_args()) ) { 590 return new AlignofExpr( arg->get_decl()->buildType()); 591 } else { 592 return new AlignofExpr( args.front()); 593 } // if 594 } 588 595 case OperatorNode::SizeOf: 589 596 { 590 /// bool isSizeOf = ( op->get_type() == OperatorNode::SizeOf );591 592 597 if ( TypeValueNode * arg = dynamic_cast<TypeValueNode *>( get_args()) ) { 593 598 return new SizeofExpr( arg->get_decl()->buildType());
Note: See TracChangeset
for help on using the changeset viewer.