Skip to content

Commit 97be5c6

Browse files
committed
convert assertion to todo
1 parent 556c299 commit 97be5c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

flang/lib/Lower/OpenMP/ClauseProcessor.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,10 @@ bool ClauseProcessor::processDepend(mlir::omp::DependClauseOps &result) const {
798798
auto process = [&](const omp::clause::Depend &clause,
799799
const parser::CharBlock &) {
800800
using Depend = omp::clause::Depend;
801-
assert(std::holds_alternative<Depend::DepType>(clause.u) &&
802-
"Only the form with depenence type is handled at the moment");
801+
if (!std::holds_alternative<Depend::DepType>(clause.u)) {
802+
TODO(converter.getCurrentLocation(),
803+
"DEPEND clause with SINK or SOURCE is not supported yet");
804+
}
803805
auto &depType = std::get<Depend::DepType>(clause.u);
804806
auto kind = std::get<Depend::TaskDependenceType>(depType.t);
805807
auto &objects = std::get<omp::ObjectList>(depType.t);

0 commit comments

Comments
 (0)