r208072 - XCore target: fix initialization bug found by MSan Bot.

Robert Lytton robert at xmos.com
Tue May 6 02:38:55 PDT 2014


Author: rlytton
Date: Tue May  6 04:38:54 2014
New Revision: 208072

URL: http://llvm.org/viewvc/llvm-project?rev=208072&view=rev
Log:
XCore target: fix initialization bug found by MSan Bot.

Modified:
    cfe/trunk/lib/CodeGen/TargetInfo.cpp

Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=208072&r1=208071&r2=208072&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Tue May  6 04:38:54 2014
@@ -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,





More information about the cfe-commits mailing list