Changeset ba2a68b
- Timestamp:
- Sep 1, 2017, 9:53:13 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:
- dbc733e
- Parents:
- bc3127d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
rbc3127d rba2a68b 10 10 // Created On : Sat May 16 13:17:07 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Sep 1 15:07:09201713 // Update Count : 6 1812 // Last Modified On : Fri Sep 1 21:49:16 2017 13 // Update Count : 622 14 14 // 15 15 … … 66 66 } // sepNumeric 67 67 68 Expression * build_constantInteger( st d::string & str ) {68 Expression * build_constantInteger( string & str ) { 69 69 static const BasicType::Kind kind[2][3] = { 70 70 { BasicType::SignedInt, BasicType::LongSignedInt, BasicType::LongLongSignedInt }, … … 148 148 CLEANUP: 149 149 if ( units.length() != 0 ) { 150 ret = new UntypedExpr( new NameExpr( units , ret ));150 ret = new UntypedExpr( new NameExpr( units ), { ret } ); 151 151 } // if 152 152 … … 190 190 Expression * ret = new ConstantExpr( Constant( new BasicType( noQualifiers, kind[complx][size] ), str, v ) ); 191 191 if ( units.length() != 0 ) { 192 ret = new UntypedExpr( new NameExpr( units , ret ));192 ret = new UntypedExpr( new NameExpr( units ), { ret } ); 193 193 } // if 194 194 … … 211 211 Expression * ret = new ConstantExpr( Constant( new BasicType( noQualifiers, BasicType::Char ), str, (unsigned long long int)(unsigned char)str[1] ) ); 212 212 if ( units.length() != 0 ) { 213 ret = new UntypedExpr( new NameExpr( units , ret ));213 ret = new UntypedExpr( new NameExpr( units ), { ret } ); 214 214 } // if 215 215 … … 228 228 // ROB: type mismatch 229 229 // if ( units.length() != 0 ) { 230 // ret = new UntypedExpr( new NameExpr( units , ret ));230 // ret = new UntypedExpr( new NameExpr( units ), { ret } ); 231 231 // } // if 232 232
Note: See TracChangeset
for help on using the changeset viewer.