Explicitly set the value to NULL when adding a string map entry.
llvm-svn: 132823
This commit is contained in:
parent
9e97a895f3
commit
40df35ef1b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue