[clang] aa9b90c - Fix warning due to default switch label
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 23 07:53:10 PST 2021
Author: Yaxun (Sam) Liu
Date: 2021-11-23T10:52:51-05:00
New Revision: aa9b90ca441d09969cab5555158f1db6341de3c1
URL: https://github.com/llvm/llvm-project/commit/aa9b90ca441d09969cab5555158f1db6341de3c1
DIFF: https://github.com/llvm/llvm-project/commit/aa9b90ca441d09969cab5555158f1db6341de3c1.diff
LOG: Fix warning due to default switch label
Fix warning due to default label in switch which covers all enumeration values
Added:
Modified:
clang/lib/CodeGen/TargetInfo.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index 824a458e8b53d..4360269f8af19 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -9358,9 +9358,6 @@ AMDGPUTargetCodeGenInfo::getLLVMSyncScopeID(const LangOptions &LangOpts,
case SyncScope::OpenCLAllSVMDevices:
Name = "";
break;
- default:
- assert(false && "NOT IMPLEMENTED");
- break;
}
if (Ordering != llvm::AtomicOrdering::SequentiallyConsistent) {
More information about the cfe-commits
mailing list