From: Robert Lytton Date: Tue, 6 May 2014 09:38:54 +0000 (+0000) Subject: XCore target: fix initialization bug found by MSan Bot. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21cb1aaecb782836af4f9d157a97d4f029e0171e;p=clang XCore target: fix initialization bug found by MSan Bot. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208072 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index b283ccbaba..32525e4700 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -6181,6 +6181,7 @@ class TypeStringCache { unsigned IncompleteCount; // Number of Incomplete entries in the Map. unsigned IncompleteUsedCount; // Number of IncompleteUsed entries in the Map. public: + TypeStringCache() : IncompleteCount(0), IncompleteUsedCount(0) {}; void addIncomplete(const IdentifierInfo *ID, std::string StubEnc); bool removeIncomplete(const IdentifierInfo *ID); void addIfComplete(const IdentifierInfo *ID, StringRef Str,