[clang] cf5e295 - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 16 09:16:02 PDT 2024
Author: Simon Pilgrim
Date: 2024-10-16T17:15:47+01:00
New Revision: cf5e295ec0e05058d0e10a3779fe4093d96074b2
URL: https://github.com/llvm/llvm-project/commit/cf5e295ec0e05058d0e10a3779fe4093d96074b2
DIFF: https://github.com/llvm/llvm-project/commit/cf5e295ec0e05058d0e10a3779fe4093d96074b2.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
clang/lib/CodeGen/Targets/DirectX.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/Targets/DirectX.cpp b/clang/lib/CodeGen/Targets/DirectX.cpp
index 303a4309d62fcf..7935f7ae370047 100644
--- a/clang/lib/CodeGen/Targets/DirectX.cpp
+++ b/clang/lib/CodeGen/Targets/DirectX.cpp
@@ -63,6 +63,7 @@ llvm::Type *DirectXTargetCodeGenInfo::getHLSLType(CodeGenModule &CGM,
llvm_unreachable("dx.Sampler handles are not implemented yet");
break;
}
+ llvm_unreachable("Unknown llvm::dxil::ResourceClass enum");
}
} // namespace
More information about the cfe-commits
mailing list