[Lldb-commits] [lldb] af09dd6 - [lldb] Silence warning
Alexandre Ganea via lldb-commits
lldb-commits at lists.llvm.org
Sun Aug 11 16:01:30 PDT 2024
Author: Alexandre Ganea
Date: 2024-08-11T19:01:12-04:00
New Revision: af09dd692232fe6f06650e5b29710206d516fb38
URL: https://github.com/llvm/llvm-project/commit/af09dd692232fe6f06650e5b29710206d516fb38
DIFF: https://github.com/llvm/llvm-project/commit/af09dd692232fe6f06650e5b29710206d516fb38.diff
LOG: [lldb] Silence warning
This fixes:
```
[6831/7617] Building CXX object
tools\lldb\source\Target\CMakeFiles\lldbTarget.dir\ThreadPlanSingleThreadTimeout.cpp.obj
C:\src\git\llvm-project\lldb\source\Target\ThreadPlanSingleThreadTimeout.cpp(66)
: warning C4715:
'lldb_private::ThreadPlanSingleThreadTimeout::StateToString': not all
control paths return a value
```
Added:
Modified:
lldb/source/Target/ThreadPlanSingleThreadTimeout.cpp
Removed:
################################################################################
diff --git a/lldb/source/Target/ThreadPlanSingleThreadTimeout.cpp b/lldb/source/Target/ThreadPlanSingleThreadTimeout.cpp
index 40a8af8e703432..0a939d55f4ce49 100644
--- a/lldb/source/Target/ThreadPlanSingleThreadTimeout.cpp
+++ b/lldb/source/Target/ThreadPlanSingleThreadTimeout.cpp
@@ -63,6 +63,7 @@ std::string ThreadPlanSingleThreadTimeout::StateToString(State state) {
case State::Done:
return "Done";
}
+ llvm_unreachable("Uncovered state value!");
}
void ThreadPlanSingleThreadTimeout::PushNewWithTimeout(Thread &thread,
More information about the lldb-commits
mailing list