Skip to content

Commit 6cd76dc

Browse files
author
git apple-llvm automerger
committed
Merge commit '5fc7e430129f' from llvm.org/main into next
2 parents 60495d4 + 5fc7e43 commit 6cd76dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/lib/Semantics/check-omp-atomic.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ struct ReassocRewriter : public evaluate::rewrite::Identity {
157157
// inside of the visitor function in common::visit.
158158
// Since this works with clang, MSVC and at least GCC 8.5, I'm assuming
159159
// that this is some kind of a GCC issue.
160-
using MatchTypes = std::tuple<evaluate::Add<T>, evaluate::Multiply<T>>;
160+
using MatchTypes = std::tuple<evaluate::Add<T>, evaluate::Multiply<T>,
161+
evaluate::LogicalOperation<T::kind>>;
161162
#else
162163
using MatchTypes = typename decltype(outer1)::MatchTypes;
163164
#endif

0 commit comments

Comments
 (0)