summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-04-05 21:07:44 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-04-05 21:07:44 +0000
commit096ea03f312ad0eaefaf78609eb103d2d2adb566 (patch)
treebe116b33cc925fe61ac40d732a6bdde00c65e75b /lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
parent95adf5258f69a072f5cbc00110e7a1500589622a (diff)
downloadbcm5719-llvm-096ea03f312ad0eaefaf78609eb103d2d2adb566.tar.gz
bcm5719-llvm-096ea03f312ad0eaefaf78609eb103d2d2adb566.zip
Fix uninitialized variables. Found by ubsan.
llvm-svn: 178913
Diffstat (limited to 'lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp')
-rw-r--r--lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
index 5100d3a1547..c07bf56a345 100644
--- a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
+++ b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
@@ -866,7 +866,7 @@ struct MappingTraits<const lld::DefinedAtom*> {
class NormalizedAtom : public lld::DefinedAtom {
public:
NormalizedAtom(IO &io)
- : _file(fileFromContext(io)), _name(), _refName(),
+ : _file(fileFromContext(io)), _name(), _refName(), _contentType(),
_alignment(0), _content(), _references() {
static uint32_t ordinalCounter = 1;
_ordinal = ordinalCounter++;
OpenPOWER on IntegriCloud