mirror of
https://github.com/Z3Prover/z3
synced 2025-05-02 21:37:02 +00:00
remove some allocs from exceptions
This commit is contained in:
parent
8791f61aa7
commit
cef17c22a1
19 changed files with 36 additions and 40 deletions
|
@ -909,7 +909,7 @@ namespace smt2 {
|
|||
std::string err_msg = "invalid datatype declaration, unknown sort '";
|
||||
err_msg += missing.str();
|
||||
err_msg += "'";
|
||||
throw parser_exception(err_msg, line, pos);
|
||||
throw parser_exception(std::move(err_msg), line, pos);
|
||||
}
|
||||
dts->commit(pm());
|
||||
m_ctx.insert_aux_pdecl(dts.get());
|
||||
|
@ -989,7 +989,7 @@ namespace smt2 {
|
|||
std::string err_msg = "invalid datatype declaration, unknown sort '";
|
||||
err_msg += missing.str();
|
||||
err_msg += "'";
|
||||
throw parser_exception(err_msg, line, pos);
|
||||
throw parser_exception(std::move(err_msg), line, pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -999,7 +999,7 @@ namespace smt2 {
|
|||
std::string err_msg = "invalid datatype declaration, repeated accessor identifier '";
|
||||
err_msg += duplicated.str();
|
||||
err_msg += "'";
|
||||
throw parser_exception(err_msg, line, pos);
|
||||
throw parser_exception(std::move(err_msg), line, pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue