projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e65b93
)
Fix warning due to default switch label
author
Yaxun (Sam) Liu
<yaxun.liu@amd.com>
Tue, 23 Nov 2021 15:46:51 +0000
(10:46 -0500)
committer
Yaxun (Sam) Liu
<yaxun.liu@amd.com>
Tue, 23 Nov 2021 15:52:51 +0000
(10:52 -0500)
Fix warning due to default label in switch which covers all enumeration values
clang/lib/CodeGen/TargetInfo.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/TargetInfo.cpp
b/clang/lib/CodeGen/TargetInfo.cpp
index
824a458
..
4360269
100644
(file)
--- 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) {