[clang] 8b0e7f2 - [CodeGen] Fix -Wswitch after D116462
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 19 17:29:00 PDT 2022
Author: Fangrui Song
Date: 2022-04-19T17:28:54-07:00
New Revision: 8b0e7f2293b39a11d83ff9889f5250947de80c53
URL: https://github.com/llvm/llvm-project/commit/8b0e7f2293b39a11d83ff9889f5250947de80c53
DIFF: https://github.com/llvm/llvm-project/commit/8b0e7f2293b39a11d83ff9889f5250947de80c53.diff
LOG: [CodeGen] Fix -Wswitch after D116462
Added:
Modified:
clang/lib/CodeGen/BackendUtil.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 3d996b3e0c470..e1cdfaeccc48b 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -238,6 +238,7 @@ static bool asanUseGlobalsGC(const Triple &T, const CodeGenOptions &CGOpts) {
llvm::report_fatal_error("ASan not implemented for XCOFF.");
case Triple::Wasm:
case Triple::DXContainer:
+ case Triple::SPIRV:
case Triple::UnknownObjectFormat:
break;
}
More information about the cfe-commits
mailing list