Author: Johannes Doerfert Date: 2023-01-21T19:50:22-08:00 New Revision: 915602e096f2bb4abb53e00f07b90ee821a49963
URL: https://github.com/llvm/llvm-project/commit/915602e096f2bb4abb53e00f07b90ee821a49963 DIFF: https://github.com/llvm/llvm-project/commit/915602e096f2bb4abb53e00f07b90ee821a49963.diff LOG: [OpenMP][FIX] Add default clause to switch Added: Modified: clang/lib/CodeGen/CGStmtOpenMP.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index 4ba2c4b59991..6bc30ad0302e 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -6458,98 +6458,7 @@ static void emitOMPAtomicExpr(CodeGenFunction &CGF, OpenMPClauseKind Kind, IsPostfixUpdate, IsFailOnly, Loc); break; } - case OMPC_if: - case OMPC_final: - case OMPC_num_threads: - case OMPC_private: - case OMPC_firstprivate: - case OMPC_lastprivate: - case OMPC_reduction: - case OMPC_task_reduction: - case OMPC_in_reduction: - case OMPC_safelen: - case OMPC_simdlen: - case OMPC_sizes: - case OMPC_full: - case OMPC_partial: - case OMPC_allocator: - case OMPC_allocate: - case OMPC_collapse: - case OMPC_default: - case OMPC_seq_cst: - case OMPC_acq_rel: - case OMPC_acquire: - case OMPC_release: - case OMPC_relaxed: - case OMPC_shared: - case OMPC_linear: - case OMPC_aligned: - case OMPC_copyin: - case OMPC_copyprivate: - case OMPC_flush: - case OMPC_depobj: - case OMPC_proc_bind: - case OMPC_schedule: - case OMPC_ordered: - case OMPC_nowait: - case OMPC_untied: - case OMPC_threadprivate: - case OMPC_depend: - case OMPC_mergeable: - case OMPC_device: - case OMPC_threads: - case OMPC_simd: - case OMPC_map: - case OMPC_num_teams: - case OMPC_thread_limit: - case OMPC_priority: - case OMPC_grainsize: - case OMPC_nogroup: - case OMPC_num_tasks: - case OMPC_hint: - case OMPC_dist_schedule: - case OMPC_defaultmap: - case OMPC_uniform: - case OMPC_to: - case OMPC_from: - case OMPC_use_device_ptr: - case OMPC_use_device_addr: - case OMPC_is_device_ptr: - case OMPC_has_device_addr: - case OMPC_unified_address: - case OMPC_unified_shared_memory: - case OMPC_reverse_offload: - case OMPC_dynamic_allocators: - case OMPC_atomic_default_mem_order: - case OMPC_at: - case OMPC_severity: - case OMPC_message: - case OMPC_device_type: - case OMPC_match: - case OMPC_nontemporal: - case OMPC_order: - case OMPC_destroy: - case OMPC_detach: - case OMPC_inclusive: - case OMPC_exclusive: - case OMPC_uses_allocators: - case OMPC_affinity: - case OMPC_init: - case OMPC_inbranch: - case OMPC_notinbranch: - case OMPC_link: - case OMPC_indirect: - case OMPC_use: - case OMPC_novariants: - case OMPC_nocontext: - case OMPC_filter: - case OMPC_when: - case OMPC_adjust_args: - case OMPC_append_args: - case OMPC_memory_order: - case OMPC_bind: - case OMPC_align: - case OMPC_cancellation_construct_type: + default: llvm_unreachable("Clause is not allowed in 'omp atomic'."); } } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits