Author: Kazu Hirata Date: 2022-12-22T12:01:35-08:00 New Revision: 81d1b61e900cefc67d59fcd3ba55e5a01e3fba78
URL: https://github.com/llvm/llvm-project/commit/81d1b61e900cefc67d59fcd3ba55e5a01e3fba78 DIFF: https://github.com/llvm/llvm-project/commit/81d1b61e900cefc67d59fcd3ba55e5a01e3fba78.diff LOG: [lldb] Fix a warning This patch fixes: lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp:1378:16: warning: control reaches end of non-void function [-Wreturn-type] Added: Modified: lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp index b78fbf7b750e6..d3b98ac7d382d 100644 --- a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp +++ b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp @@ -1399,6 +1399,7 @@ class Executor { return inst.rd.Write(m_emu, rs1.compare(rs2) != APFloat::cmpGreaterThan); } + llvm_unreachable("unsupported F_CMP"); }) .value_or(false); } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits