projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41b646c
)
Disable the StringMapEntry copy constructor, to make sure we
author
Chris Lattner
<sabre@nondot.org>
Sat, 25 May 2013 22:28:22 +0000
(22:28 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 25 May 2013 22:28:22 +0000
(22:28 +0000)
reject things like: "for (auto Entry : SomeStringMap)". Previously
this would copy the value but not the tail allocated string data
(the key).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182713
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/StringMap.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/StringMap.h
b/include/llvm/ADT/StringMap.h
index 197230e1facf05d91a039ab197bb82f54eb112e6..0838ebe91f1ba51545e46234e336e63990249311 100644
(file)
--- a/
include/llvm/ADT/StringMap.h
+++ b/
include/llvm/ADT/StringMap.h
@@
-116,6
+116,7
@@
public:
/// and data.
template<typename ValueTy>
class StringMapEntry : public StringMapEntryBase {
+ StringMapEntry(StringMapEntry &E) LLVM_DELETED_FUNCTION;
public:
ValueTy second;