mirror of
https://github.com/Z3Prover/z3
synced 2025-08-18 09:12:16 +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
|
@ -463,9 +463,9 @@ public:
|
|||
if (finished_id == UINT_MAX) {
|
||||
switch (ex_kind) {
|
||||
case ERROR_EX: throw z3_error(error_code);
|
||||
case TACTIC_EX: throw tactic_exception(ex_msg.c_str());
|
||||
case TACTIC_EX: throw tactic_exception(std::move(ex_msg));
|
||||
default:
|
||||
throw default_exception(ex_msg.c_str());
|
||||
throw default_exception(std::move(ex_msg));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -660,9 +660,9 @@ public:
|
|||
if (failed) {
|
||||
switch (ex_kind) {
|
||||
case ERROR_EX: throw z3_error(error_code);
|
||||
case TACTIC_EX: throw tactic_exception(ex_msg.c_str());
|
||||
case TACTIC_EX: throw tactic_exception(std::move(ex_msg));
|
||||
default:
|
||||
throw default_exception(ex_msg.c_str());
|
||||
throw default_exception(std::move(ex_msg));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue