]> granicus.if.org Git - clang/commitdiff
XCore target: fix initialization bug found by MSan Bot.
authorRobert Lytton <robert@xmos.com>
Tue, 6 May 2014 09:38:54 +0000 (09:38 +0000)
committerRobert Lytton <robert@xmos.com>
Tue, 6 May 2014 09:38:54 +0000 (09:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208072 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index b283ccbaba5bc51a13396e6f6e5671e0141485cd..32525e4700164b968b0ea8f36b7644d283001657 100644 (file)
@@ -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,