Skip to content

Commit 9684fed

Browse files
committed
Fix up: check isUnique instead of source expr presence
1 parent 61abd7b commit 9684fed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CodeGen/CoverageMappingGen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,8 +2187,8 @@ struct CounterCoverageMappingBuilder
21872187
}
21882188

21892189
void VisitOpaqueValueExpr(const OpaqueValueExpr* OVE) {
2190-
if (const Expr *SE = OVE->getSourceExpr())
2191-
Visit(SE);
2190+
if (OVE->isUnique())
2191+
Visit(OVE->getSourceExpr());
21922192
}
21932193
};
21942194

0 commit comments

Comments
 (0)