Skip to content

Commit 85eb56c

Browse files
Merge pull request #11970 from The-OpenROAD-Project-staging/coverity-fix-pr11905
rsz: Keep unbuffer test targets alive
2 parents c7a9346 + 8788c30 commit 85eb56c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/rsz/test/cpp/TestUnbufferMt.cc‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ TEST_F(TestUnbufferMt, GenerateOffersARemovalThatGains)
8080
TEST_F(TestUnbufferMt, ImpactReconnectsThePinsOfTheDroppedNet)
8181
{
8282
// path_pre1 keeps its input net, so the NAND2 input moves.
83-
const UnbufferMtCandidate inner(resizer_,
84-
makeTarget("path_out", "path_pre1", "Z"));
83+
const Target inner_target = makeTarget("path_out", "path_pre1", "Z");
84+
const UnbufferMtCandidate inner(resizer_, inner_target);
8585
EXPECT_EQ(
8686
inner.impact().reconnect_pins,
8787
std::vector<const sta::Pin*>{db_network_->findPin("path_target/A1")});
8888

8989
// path_load drives the path_out port, so its output net stays and the NAND2
9090
// output moves onto it.
91-
const UnbufferMtCandidate outer(resizer_,
92-
makeTarget("path_out", "path_load", "Z"));
91+
const Target outer_target = makeTarget("path_out", "path_load", "Z");
92+
const UnbufferMtCandidate outer(resizer_, outer_target);
9393
EXPECT_EQ(
9494
outer.impact().reconnect_pins,
9595
std::vector<const sta::Pin*>{db_network_->findPin("path_target/ZN")});

0 commit comments

Comments
 (0)