Skip to content

Commit

Permalink
Fix up: check isUnique instead of source expr presence
Browse files Browse the repository at this point in the history
  • Loading branch information
bolshakov-a committed May 16, 2024
1 parent 61abd7b commit 9684fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/CodeGen/CoverageMappingGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2187,8 +2187,8 @@ struct CounterCoverageMappingBuilder
}

void VisitOpaqueValueExpr(const OpaqueValueExpr* OVE) {
if (const Expr *SE = OVE->getSourceExpr())
Visit(SE);
if (OVE->isUnique())
Visit(OVE->getSourceExpr());
}
};

Expand Down

0 comments on commit 9684fed

Please sign in to comment.