Skip to content

Commit

Permalink
Fix -Wunused-but-set-variable in hphp/
Browse files Browse the repository at this point in the history
Summary:
#buildsonlynotests - No runtime effects!

 - If you approve of this diff, please use the "Accept & Ship" button

ig-no-test - Doesn't require Instagram testing.

allow-large-files

Reviewed By: dmm-fb

Differential Revision: D62756783

fbshipit-source-id: 2e341b3690d9f8465ff88dc760cd56db215392c1
  • Loading branch information
r-barnes authored and facebook-github-bot committed Sep 16, 2024
1 parent 8325186 commit 87a1a16
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hphp/runtime/vm/jit/region-selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1132,10 +1132,8 @@ bool check(const RegionDesc& region, std::string& error) {
auto& blocks = region.blocks();
for (unsigned i = 0; i < blocks.size(); i++) {
auto bid = blocks[i]->id();
DEBUG_ONLY unsigned nAllPreds = region.preds(bid).size();
unsigned nVisited = 0;
if (auto prevRetrans = region.prevRetrans(bid)) {
nAllPreds++;
nVisited += visited.count(prevRetrans.value());
}
for (auto pred : region.preds(bid)) {
Expand Down

0 comments on commit 87a1a16

Please sign in to comment.