Skip to content

Commit 4fa2c62

Browse files
committed
Fix MSVC "not all control paths return a value" warning. NFC.
1 parent cf1f116 commit 4fa2c62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/CodeGen/CGClass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2805,6 +2805,7 @@ SanitizerInfoFromCFICheckKind(CodeGenFunction::CFITypeCheckKind TCK) {
28052805
case CodeGenFunction::CFITCK_VMFCall:
28062806
llvm_unreachable("unexpected sanitizer kind");
28072807
}
2808+
llvm_unreachable("Unknown CFITypeCheckKind enum");
28082809
}
28092810

28102811
void CodeGenFunction::EmitVTablePtrCheckForCall(const CXXRecordDecl *RD,

0 commit comments

Comments
 (0)