[lld] r178913 - Fix uninitialized variables. Found by ubsan.
Michael J. Spencer
bigcheesegs at gmail.com
Fri Apr 5 14:07:44 PDT 2013
Author: mspencer
Date: Fri Apr 5 16:07:44 2013
New Revision: 178913
URL: http://llvm.org/viewvc/llvm-project?rev=178913&view=rev
Log:
Fix uninitialized variables. Found by ubsan.
Modified:
lld/trunk/lib/Core/TargetInfo.cpp
lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
Modified: lld/trunk/lib/Core/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/TargetInfo.cpp?rev=178913&r1=178912&r2=178913&view=diff
==============================================================================
--- lld/trunk/lib/Core/TargetInfo.cpp (original)
+++ lld/trunk/lib/Core/TargetInfo.cpp Fri Apr 5 16:07:44 2013
@@ -25,6 +25,7 @@ TargetInfo::TargetInfo()
, _forceLoadAllArchives(false)
, _printRemainingUndefines(true)
, _allowRemainingUndefines(false)
+ , _logInputFiles(false)
{
}
Modified: lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp?rev=178913&r1=178912&r2=178913&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp (original)
+++ lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp Fri Apr 5 16:07:44 2013
@@ -866,7 +866,7 @@ struct MappingTraits<const lld::DefinedA
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++;
More information about the llvm-commits
mailing list