aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kuegel <akuegel@google.com>2022-05-25 09:33:41 +0200
committerAdrian Kuegel <akuegel@google.com>2022-05-25 09:33:41 +0200
commit9698a445c664e6f0da5727364338ee99de537d6a (patch)
tree06b60b5fd86dc3b77758923a51e1326a2c347cf5
parentca27f3e3b26ed5389d4a361f274e3be516eb282d (diff)
downloadllvm-9698a445c664e6f0da5727364338ee99de537d6a.zip
llvm-9698a445c664e6f0da5727364338ee99de537d6a.tar.gz
llvm-9698a445c664e6f0da5727364338ee99de537d6a.tar.bz2
Fix warning by handling OMPC_fail in switch statement.
-rw-r--r--clang/lib/CodeGen/CGStmtOpenMP.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index 61e3661..ebe65e5 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -6317,6 +6317,7 @@ static void emitOMPAtomicExpr(CodeGenFunction &CGF, OpenMPClauseKind Kind,
case OMPC_bind:
case OMPC_align:
case OMPC_cancellation_construct_type:
+ case OMPC_fail:
llvm_unreachable("Clause is not allowed in 'omp atomic'.");
}
}