addressed performance and correctness issues flagged by Coverity

This commit is contained in:
Vern Paxson 2023-08-15 16:07:49 -07:00
parent 9357a5879b
commit 3925ff4592
9 changed files with 32 additions and 29 deletions

View file

@ -1935,7 +1935,7 @@ stmt:
| when_clause
{
std::shared_ptr<WhenInfo> wi($1);
$$ = new WhenStmt(wi);
$$ = new WhenStmt(std::move(wi));
script_coverage_mgr.AddStmt($$);
}