Explicitly set the value to NULL when adding a string map entry.

llvm-svn: 132823
This commit is contained in:
Greg Clayton 2011-06-10 00:00:19 +00:00
parent 9e97a895f3
commit 40df35ef1b
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public:
{
Mutex::Locker locker (m_mutex);
llvm::StringRef string_ref (cstr, cstr_len);
StringPoolEntryType& entry = m_string_map.GetOrCreateValue (string_ref);
StringPoolEntryType& entry = m_string_map.GetOrCreateValue (string_ref, (StringPoolValueType)NULL);
return entry.getKeyData();
}
return NULL;