mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-05-30 00:24:12 +08:00
Liberty unnecessary move
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
@@ -172,9 +172,7 @@ LibertyParser::makeSimpleAttr(std::string &&name,
|
||||
const LibertyAttrValue *value,
|
||||
int line)
|
||||
{
|
||||
LibertySimpleAttr *attr = new LibertySimpleAttr(std::move(name),
|
||||
std::move(*value),
|
||||
line);
|
||||
LibertySimpleAttr *attr = new LibertySimpleAttr(std::move(name), *value, line);
|
||||
delete value;
|
||||
LibertyGroup *group = this->group();
|
||||
group->addAttr(attr);
|
||||
@@ -194,8 +192,7 @@ LibertyParser::makeComplexAttr(std::string &&name,
|
||||
return nullptr; // Define is not a complex attr; already added to group
|
||||
}
|
||||
else {
|
||||
LibertyComplexAttr *attr =
|
||||
new LibertyComplexAttr(std::move(name), std::move(*values), line);
|
||||
LibertyComplexAttr *attr = new LibertyComplexAttr(std::move(name), *values, line);
|
||||
delete values;
|
||||
LibertyGroup *group = this->group();
|
||||
group->addAttr(attr);
|
||||
|
||||
Reference in New Issue
Block a user