aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorfoxtran <39676482+foxtran@users.noreply.github.com>2025-02-21 18:02:19 +0100
committerGitHub <noreply@github.com>2025-02-21 11:02:19 -0600
commit506deb0cce3fe503f61ef1a1a08a40770ef4b978 (patch)
tree6582939320f7c3d4c2eed06f8d92a90ade8b8683 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent6e457c20016ae1ed7249dd28ce4b3c7993a91275 (diff)
downloadllvm-506deb0cce3fe503f61ef1a1a08a40770ef4b978.zip
llvm-506deb0cce3fe503f61ef1a1a08a40770ef4b978.tar.gz
llvm-506deb0cce3fe503f61ef1a1a08a40770ef4b978.tar.bz2
[lldb] Fix GCC's `-Wreturn-type` warnings (#127974)
This patch fixes `-Wreturn-type` warnings which happens if LLVM is built with GCC compiler (14.1 is used for detecting) Warnings: ``` llvm-project/lldb/source/ValueObject/DILLexer.cpp: In static member function ‘static llvm::StringRef lldb_private::dil::Token::GetTokenName(Kind)’: llvm-project/lldb/source/ValueObject/DILLexer.cpp:33:1: warning: control reaches end of non-void function [-Wreturn-type] 33 | } | ^ ``` and: ``` llvm-project/lldb/source/DataFormatters/TypeSummary.cpp: In member function ‘virtual std::string lldb_private::TypeSummaryImpl::GetSummaryKindName()’: llvm-project/lldb/source/DataFormatters/TypeSummary.cpp:62:1: warning: control reaches end of non-void function [-Wreturn-type] 62 | } | ^ ``` Technically, it is a bug in Clang (see #115345), however, UBSan with Clang should detect these places, therefore it would be nice to provide a return statement for all possible inputs (even invalid).
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions