- File:
-
- 1 edited
-
src/ResolvExpr/AlternativeFinder.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
r93401f8 rc71b256 10 10 // Created On : Sat May 16 23:52:08 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Feb 17 11:19:39 201813 // Update Count : 3 312 // Last Modified On : Mon Aug 28 13:47:24 2017 13 // Update Count : 32 14 14 // 15 15 … … 239 239 std::cerr << "No reasonable alternatives for expression " << expr << std::endl; 240 240 ) 241 throw SemanticError( expr, "No reasonable alternatives for expression ");241 throw SemanticError( "No reasonable alternatives for expression ", expr ); 242 242 } 243 243 if ( prune ) { … … 255 255 stream << "Cannot choose between " << winners.size() << " alternatives for expression\n"; 256 256 expr->print( stream ); 257 stream << " Alternatives are:\n";257 stream << "Alternatives are:\n"; 258 258 printAlts( winners, stream, 1 ); 259 throw SemanticError( expr->location,stream.str() );259 throw SemanticError( stream.str() ); 260 260 } 261 261 alternatives = move(pruned); … … 494 494 return; 495 495 } else if ( level >= recursionLimit ) { 496 throw SemanticError( newAlt.expr->location,"Too many recursive assertions" );496 throw SemanticError( "Too many recursive assertions" ); 497 497 } else { 498 498 AssertionSet newerNeed; … … 1408 1408 findMinCost( finder.alternatives.begin(), finder.alternatives.end(), back_inserter( winners ) ); 1409 1409 if ( winners.size() != 1 ) { 1410 throw SemanticError( sizeofExpr->get_expr(), "Ambiguous expression in sizeof operand: ");1410 throw SemanticError( "Ambiguous expression in sizeof operand: ", sizeofExpr->get_expr() ); 1411 1411 } // if 1412 1412 // return the lowest cost alternative for the argument … … 1429 1429 findMinCost( finder.alternatives.begin(), finder.alternatives.end(), back_inserter( winners ) ); 1430 1430 if ( winners.size() != 1 ) { 1431 throw SemanticError( alignofExpr->get_expr(), "Ambiguous expression in alignof operand: ");1431 throw SemanticError( "Ambiguous expression in alignof operand: ", alignofExpr->get_expr() ); 1432 1432 } // if 1433 1433 // return the lowest cost alternative for the argument
Note:
See TracChangeset
for help on using the changeset viewer.