summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
authorRobert Lytton <robert@xmos.com>2014-05-06 09:38:54 +0000
committerRobert Lytton <robert@xmos.com>2014-05-06 09:38:54 +0000
commit21cb1aaecb782836af4f9d157a97d4f029e0171e (patch)
treeb0277bcc5740abaee4f0522e5f70077e4436e2f0 /lib/CodeGen/TargetInfo.cpp
parent291e3cbc5284c71e3d689bfba1f61879de1fd071 (diff)
downloadclang-21cb1aaecb782836af4f9d157a97d4f029e0171e.tar.gz
clang-21cb1aaecb782836af4f9d157a97d4f029e0171e.tar.bz2
clang-21cb1aaecb782836af4f9d157a97d4f029e0171e.tar.xz
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
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r--lib/CodeGen/TargetInfo.cpp1
1 files changed, 1 insertions, 0 deletions
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,