Skip to content

Commit

Permalink
[clangd] InlayHints.cpp - fix MSVC "not all control paths return a va…
Browse files Browse the repository at this point in the history
…lue" warning. NFC.
  • Loading branch information
RKSimon committed Jul 24, 2023
1 parent b0fd2fd commit 9fbabba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang-tools-extra/clangd/InlayHints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ const NamedDecl *getDeclForType(const Type *T) {
return getDeclForTypeImpl(llvm::cast<TY##Type>(T));
#include "clang/AST/TypeNodes.inc"
}
llvm_unreachable("Unknown TypeClass enum");
}

// getSimpleName() returns the plain identifier for an entity, if any.
Expand Down

0 comments on commit 9fbabba

Please sign in to comment.