================
@@ -21605,13 +21618,16 @@ static bool FinishOpenMPLinearClause(OMPLinearClause
&Clause, DeclRefExpr *IV,
// Build privatized reference to the current linear var.
auto *DE = cast<DeclRefExpr>(SimpleRefExpr);
Expr *CapturedRef;
- if (LinKind == OMPC_LINEAR_uval)
+ if (dyn_cast<BindingDecl>(DE->getDecl())) {
----------------
alexey-bataev wrote:
```suggestion
if (isa<BindingDecl>(DE->getDecl())) {
```
https://github.com/llvm/llvm-project/pull/190832
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits