aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2025-05-20 13:44:11 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2025-05-20 14:18:56 +0100
commit4fa2c62e324afacf2788e60cc34bcfe7ee62d06d (patch)
tree17ce4f2984ffaad6cc0d1177f42d1b874831230e /clang/lib/CodeGen/CGClass.cpp
parentcf1f116f7832908ed8eb91e02403055e9ef555ee (diff)
downloadllvm-4fa2c62e324afacf2788e60cc34bcfe7ee62d06d.zip
llvm-4fa2c62e324afacf2788e60cc34bcfe7ee62d06d.tar.gz
llvm-4fa2c62e324afacf2788e60cc34bcfe7ee62d06d.tar.bz2
Fix MSVC "not all control paths return a value" warning. NFC.
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 652622a..6beb2bc 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -2805,6 +2805,7 @@ SanitizerInfoFromCFICheckKind(CodeGenFunction::CFITypeCheckKind TCK) {
case CodeGenFunction::CFITCK_VMFCall:
llvm_unreachable("unexpected sanitizer kind");
}
+ llvm_unreachable("Unknown CFITypeCheckKind enum");
}
void CodeGenFunction::EmitVTablePtrCheckForCall(const CXXRecordDecl *RD,