Changes in src/ResolvExpr/PtrsCastable.cc [af397ef8:1d29d46]
- File:
-
- 1 edited
-
src/ResolvExpr/PtrsCastable.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/PtrsCastable.cc
raf397ef8 r1d29d46 92 92 } 93 93 94 void PtrsCastable::visit( __attribute__((unused))VoidType *voidType) {94 void PtrsCastable::visit(VoidType *voidType) { 95 95 result = objectCast( dest, env, indexer ); 96 96 } 97 97 98 void PtrsCastable::visit( __attribute__((unused))BasicType *basicType) {98 void PtrsCastable::visit(BasicType *basicType) { 99 99 result = objectCast( dest, env, indexer ); 100 100 } 101 101 102 void PtrsCastable::visit( __attribute__((unused))PointerType *pointerType) {102 void PtrsCastable::visit(PointerType *pointerType) { 103 103 result = objectCast( dest, env, indexer ); 104 104 } 105 105 106 void PtrsCastable::visit( __attribute__((unused))ArrayType *arrayType) {106 void PtrsCastable::visit(ArrayType *arrayType) { 107 107 result = objectCast( dest, env, indexer ); 108 108 } 109 109 110 void PtrsCastable::visit( __attribute__((unused))FunctionType *functionType) {110 void PtrsCastable::visit(FunctionType *functionType) { 111 111 // result = -1; 112 112 result = functionCast( dest, env, indexer ); 113 113 } 114 114 115 void PtrsCastable::visit( __attribute__((unused))StructInstType *inst) {115 void PtrsCastable::visit(StructInstType *inst) { 116 116 result = objectCast( dest, env, indexer ); 117 117 } 118 118 119 void PtrsCastable::visit( __attribute__((unused))UnionInstType *inst) {119 void PtrsCastable::visit(UnionInstType *inst) { 120 120 result = objectCast( dest, env, indexer ); 121 121 } 122 122 123 void PtrsCastable::visit( __attribute__((unused))EnumInstType *inst) {123 void PtrsCastable::visit(EnumInstType *inst) { 124 124 if ( dynamic_cast< EnumInstType* >( dest ) ) { 125 125 result = 1; … … 135 135 } 136 136 137 void PtrsCastable::visit( __attribute__((unused)) TraitInstType *inst ) {} 137 void PtrsCastable::visit(TraitInstType *inst) { 138 // I definitely don't think we should be doing anything here 139 } 138 140 139 141 void PtrsCastable::visit(TypeInstType *inst) { … … 142 144 } 143 145 144 void PtrsCastable::visit( __attribute__((unused))TupleType *tupleType) {146 void PtrsCastable::visit(TupleType *tupleType) { 145 147 result = objectCast( dest, env, indexer ); 146 148 } 147 149 148 void PtrsCastable::visit( __attribute__((unused))VarArgsType *varArgsType) {150 void PtrsCastable::visit(VarArgsType *varArgsType) { 149 151 result = objectCast( dest, env, indexer ); 150 152 } 151 153 152 void PtrsCastable::visit( __attribute__((unused))ZeroType *zeroType) {154 void PtrsCastable::visit(ZeroType *zeroType) { 153 155 result = objectCast( dest, env, indexer ); 154 156 } 155 157 156 void PtrsCastable::visit( __attribute__((unused))OneType *oneType) {158 void PtrsCastable::visit(OneType *oneType) { 157 159 result = objectCast( dest, env, indexer ); 158 160 }
Note:
See TracChangeset
for help on using the changeset viewer.