Skip to content

Commit

Permalink
Fix MSVC "not all control paths return a value" warnings. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Nov 3, 2023
1 parent e4a4122 commit 539e076
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions clang/include/clang/Basic/Linkage.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ inline bool isExternallyVisible(Linkage L) {
case Linkage::External:
return true;
}
llvm_unreachable("Unhandled Linkage enum");
}

inline Linkage getFormalLinkage(Linkage L) {
Expand Down
1 change: 1 addition & 0 deletions clang/lib/AST/Decl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1934,6 +1934,7 @@ bool NamedDecl::hasLinkage() const {
case Linkage::External:
return true;
}
llvm_unreachable("Unhandled Linkage enum");
}

NamedDecl *NamedDecl::getUnderlyingDeclImpl() {
Expand Down

0 comments on commit 539e076

Please sign in to comment.