mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Catch exceptions by const-reference
Exceptions caught by value incur needless cost in C++, most of them can be caught by const-reference, especially as nearly none are actually used. This could allow compiler generate a slightly more efficient code.
This commit is contained in:
parent
b301a59899
commit
cfd0486582
36 changed files with 45 additions and 45 deletions
|
@ -706,7 +706,7 @@ namespace opt {
|
|||
quick_for_each_expr(proc, visited, f);
|
||||
}
|
||||
}
|
||||
catch (is_bv::found) {
|
||||
catch (const is_bv::found &) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -737,7 +737,7 @@ namespace opt {
|
|||
try {
|
||||
quick_for_each_expr(proc, visited, p);
|
||||
}
|
||||
catch (is_propositional_fn::found) {
|
||||
catch (const is_propositional_fn::found &) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue