mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Disable the StringMapEntry copy constructor, to make sure we
reject things like: "for (auto Entry : SomeStringMap)". Previously this would copy the value but not the tail allocated string data (the key). llvm-svn: 182713
This commit is contained in:
parent
fe498a1e92
commit
65e3f520d4
@ -116,6 +116,7 @@ public:
|
||||
/// and data.
|
||||
template<typename ValueTy>
|
||||
class StringMapEntry : public StringMapEntryBase {
|
||||
StringMapEntry(StringMapEntry &E) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
ValueTy second;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user