TypeCategory: Initialize m_enabled to false
authorVedant Kumar <vsk@apple.com>
Thu, 12 Dec 2019 19:08:56 +0000 (11:08 -0800)
committerVedant Kumar <vsk@apple.com>
Thu, 12 Dec 2019 19:39:41 +0000 (11:39 -0800)
commit46d970cc436068af826e5f6a59033dd0f10c570d
tree7f41f3580a1222b04bf8c823f4cea05fed6aa2f9
parent654c0daef75a41eede06b413a5ecdd8ad2640240
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
lldb/source/DataFormatters/TypeCategory.cpp