File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ static std::optional<AnalyzedCondStmt> AnalyzeConditionalStmt(
286286 // Extract the evaluate::Expr from ScalarLogicalExpr.
287287 auto getFromLogical{[](const parser::ScalarLogicalExpr &logical) {
288288 // ScalarLogicalExpr is Scalar<Logical<common::Indirection<Expr>>>
289- const parser::Expr &expr{logical. thing . thing . value ( )};
289+ auto &expr{ parser::UnwrapRef<parser:: Expr>(logical )};
290290 return GetEvaluateExpr (expr);
291291 }};
292292
Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ class OmpAttributeVisitor : DirectiveAttributeVisitor<llvm::omp::Directive> {
560560 auto getArgument{[&](auto &&maybeClause) {
561561 if (maybeClause) {
562562 // Scalar<Logical<Constant<common::Indirection<Expr>>>>
563- auto &parserExpr{maybeClause-> v . thing . thing . thing . value ( )};
563+ auto &parserExpr{parser::UnwrapRef<parser::Expr>(*maybeClause )};
564564 evaluate::ExpressionAnalyzer ea{context_};
565565 if (auto &&maybeExpr{ea.Analyze (parserExpr)}) {
566566 if (auto v{omp::GetLogicalValue (*maybeExpr)}) {
You can’t perform that action at this time.
0 commit comments