summaryrefslogtreecommitdiffstats
path: root/clang/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
commitd263f14a0fed092af9dab53c1bdf25e6ba85c299 (patch)
treec51caef53261546dc83ff75ee67d5c292cc35d2d /clang/lib/CodeGen/TargetInfo.cpp
parent13b9b7e0e896bea3ef6da7491fdb1e66ff88ecc9 (diff)
downloadbcm5719-llvm-d263f14a0fed092af9dab53c1bdf25e6ba85c299.tar.gz
bcm5719-llvm-d263f14a0fed092af9dab53c1bdf25e6ba85c299.zip
XCore target: fix initialization bug found by MSan Bot.
llvm-svn: 208072
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.cpp')
-rw-r--r--clang/lib/CodeGen/TargetInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index b283ccbaba5..32525e47001 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/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,
OpenPOWER on IntegriCloud