summaryrefslogtreecommitdiff
path: root/source/Interpreter/OptionValueLanguage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Interpreter/OptionValueLanguage.cpp')
-rw-r--r--source/Interpreter/OptionValueLanguage.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/Interpreter/OptionValueLanguage.cpp b/source/Interpreter/OptionValueLanguage.cpp
index 1a82329bf0f3..c6e168d66b4f 100644
--- a/source/Interpreter/OptionValueLanguage.cpp
+++ b/source/Interpreter/OptionValueLanguage.cpp
@@ -9,10 +9,6 @@
#include "lldb/Interpreter/OptionValueLanguage.h"
-// C Includes
-// C++ Includes
-// Other libraries and framework includes
-// Project includes
#include "lldb/DataFormatters/FormatManager.h"
#include "lldb/Target/Language.h"
#include "lldb/Utility/Args.h"
@@ -28,7 +24,8 @@ void OptionValueLanguage::DumpValue(const ExecutionContext *exe_ctx,
if (dump_mask & eDumpOptionValue) {
if (dump_mask & eDumpOptionType)
strm.PutCString(" = ");
- strm.PutCString(Language::GetNameForLanguageType(m_current_value));
+ if (m_current_value != eLanguageTypeUnknown)
+ strm.PutCString(Language::GetNameForLanguageType(m_current_value));
}
}