summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2019-12-12 11:08:56 -0800
committerVedant Kumar <vsk@apple.com>2019-12-12 11:39:41 -0800
commit46d970cc436068af826e5f6a59033dd0f10c570d (patch)
tree7f41f3580a1222b04bf8c823f4cea05fed6aa2f9
parent654c0daef75a41eede06b413a5ecdd8ad2640240 (diff)
downloadbcm5719-llvm-46d970cc436068af826e5f6a59033dd0f10c570d.tar.gz
bcm5719-llvm-46d970cc436068af826e5f6a59033dd0f10c570d.zip
TypeCategory: Initialize m_enabled to false
The initialization was accidentally lost in https://reviews.llvm.org/D71310, causing a ubsan failure: /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/include/lldb/DataFormatters/TypeCategory.h:278:35: runtime error: load of value 190, which is not a valid value for type 'bool' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/include/lldb/DataFormatters/TypeCategory.h:278:35 in http://lab.llvm.org:8080/green/view/LLDB/job/lldb-cmake-sanitized/621/consoleText
-rw-r--r--lldb/source/DataFormatters/TypeCategory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/TypeCategory.cpp b/lldb/source/DataFormatters/TypeCategory.cpp
index cc86983fbb9..85699691f52 100644
--- a/lldb/source/DataFormatters/TypeCategory.cpp
+++ b/lldb/source/DataFormatters/TypeCategory.cpp
@@ -18,7 +18,7 @@ TypeCategoryImpl::TypeCategoryImpl(IFormatChangeListener *clist,
: m_format_cont("format", "regex-format", clist),
m_summary_cont("summary", "regex-summary", clist),
m_filter_cont("filter", "regex-filter", clist),
- m_synth_cont("synth", "regex-synth", clist),
+ m_synth_cont("synth", "regex-synth", clist), m_enabled(false),
m_change_listener(clist), m_mutex(), m_name(name), m_languages() {}
static bool IsApplicable(lldb::LanguageType category_lang,
OpenPOWER on IntegriCloud