Fix warning by handling OMPC_fail in switch statement.

This commit is contained in:
Adrian Kuegel 2022-05-25 09:33:41 +02:00
parent ca27f3e3b2
commit 9698a445c6

View File

@ -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'.");
}
}