[llvm] daab6fc - [Transforms] DXILResource.cpp - fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 08:30:51 PDT 2024
Author: Simon Pilgrim
Date: 2024-07-17T16:30:27+01:00
New Revision: daab6fc5357b3a7f8b6780134d5cb6130f92329b
URL: https://github.com/llvm/llvm-project/commit/daab6fc5357b3a7f8b6780134d5cb6130f92329b
DIFF: https://github.com/llvm/llvm-project/commit/daab6fc5357b3a7f8b6780134d5cb6130f92329b.diff
LOG: [Transforms] DXILResource.cpp - fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
llvm/lib/Transforms/Utils/DXILResource.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/DXILResource.cpp b/llvm/lib/Transforms/Utils/DXILResource.cpp
index 7281c7ad04531..bf45654a591b5 100644
--- a/llvm/lib/Transforms/Utils/DXILResource.cpp
+++ b/llvm/lib/Transforms/Utils/DXILResource.cpp
@@ -49,6 +49,7 @@ bool ResourceInfo::isTyped() const {
case ResourceKind::NumEntries:
llvm_unreachable("Invalid resource kind");
}
+ llvm_unreachable("Unhandled ResourceKind enum");
}
bool ResourceInfo::isFeedback() const {
More information about the llvm-commits
mailing list