[Lldb-commits] [lldb] 81d1b61 - [lldb] Fix a warning
Kazu Hirata via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 22 12:01:41 PST 2022
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);
}
More information about the lldb-commits
mailing list