diff options
-rw-r--r-- | lldb/include/lldb/Utility/JSON.h | 2 | ||||
-rw-r--r-- | lldb/source/Utility/JSON.cpp | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lldb/include/lldb/Utility/JSON.h b/lldb/include/lldb/Utility/JSON.h index 2cdc5c35286..e61c5ee8501 100644 --- a/lldb/include/lldb/Utility/JSON.h +++ b/lldb/include/lldb/Utility/JSON.h @@ -145,7 +145,7 @@ namespace lldb_private { uint64_t GetAsUnsigned() const; - uint64_t + int64_t GetAsSigned() const; double diff --git a/lldb/source/Utility/JSON.cpp b/lldb/source/Utility/JSON.cpp index 8804371b31f..8b96a06e08e 100644 --- a/lldb/source/Utility/JSON.cpp +++ b/lldb/source/Utility/JSON.cpp @@ -12,6 +12,7 @@ #include <limits.h> #include "lldb/Core/StreamString.h" #include "lldb/Host/StringConvert.h" +#include "llvm/Support/ErrorHandling.h" using namespace lldb_private; @@ -72,9 +73,10 @@ JSONNumber::GetAsUnsigned() const case DataType::Double: return (uint64_t)m_data.m_double; } + llvm_unreachable("Unhandled data type"); } -uint64_t +int64_t JSONNumber::GetAsSigned() const { switch (m_data_type) @@ -86,6 +88,7 @@ JSONNumber::GetAsSigned() const case DataType::Double: return (int64_t)m_data.m_double; } + llvm_unreachable("Unhandled data type"); } double @@ -100,6 +103,7 @@ JSONNumber::GetAsDouble() const case DataType::Double: return m_data.m_double; } + llvm_unreachable("Unhandled data type"); } void |