Changeset 5ccb10d for src/ResolvExpr/PtrsAssignable.cc
- Timestamp:
- Aug 22, 2017, 6:41:28 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 0b5d871
- Parents:
- d104b02
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/PtrsAssignable.cc
rd104b02 r5ccb10d 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // PtrsAssignable.cc -- 7 // PtrsAssignable.cc -- 8 8 // 9 9 // Author : Richard C. Bilson … … 83 83 void PtrsAssignable::visit( __attribute__((unused)) UnionInstType *inst ) {} 84 84 85 void PtrsAssignable::visit( EnumInstType * inst) {86 if ( dynamic_cast< EnumInstType* >( inst ) ) {85 void PtrsAssignable::visit( EnumInstType * ) { 86 if ( dynamic_cast< EnumInstType* >( dest ) ) { 87 87 result = 1; 88 } else if ( BasicType *bt = dynamic_cast< BasicType* >( inst ) ) {88 } else if ( BasicType *bt = dynamic_cast< BasicType* >( dest ) ) { 89 89 result = bt->get_kind() == BasicType::SignedInt; 90 90 } … … 105 105 void PtrsAssignable::visit( __attribute__((unused)) ZeroType *zeroType ) {} 106 106 void PtrsAssignable::visit( __attribute__((unused)) OneType *oneType ) {} 107 107 108 108 } // namespace ResolvExpr 109 109
Note: See TracChangeset
for help on using the changeset viewer.