[llvm] r329526 - NFC: delete ValueMap move ctor
Piotr Padlewski via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 8 05:23:58 PDT 2018
Author: prazek
Date: Sun Apr 8 05:23:58 2018
New Revision: 329526
URL: http://llvm.org/viewvc/llvm-project?rev=329526&view=rev
Log:
NFC: delete ValueMap move ctor
Modified:
llvm/trunk/include/llvm/IR/ValueMap.h
Modified: llvm/trunk/include/llvm/IR/ValueMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/ValueMap.h?rev=329526&r1=329525&r2=329526&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/ValueMap.h (original)
+++ llvm/trunk/include/llvm/IR/ValueMap.h Sun Apr 8 05:23:58 2018
@@ -106,8 +106,12 @@ public:
: Map(NumInitBuckets), Data() {}
explicit ValueMap(const ExtraData &Data, unsigned NumInitBuckets = 64)
: Map(NumInitBuckets), Data(Data) {}
+ // ValueMap can't be copied nor moved, beucase the callbacks store pointer
+ // to it.
ValueMap(const ValueMap &) = delete;
+ ValueMap(ValueMap &&) = delete;
ValueMap &operator=(const ValueMap &) = delete;
+ ValueMap &operator=(ValueMap &&) = delete;
bool hasMD() const { return bool(MDMap); }
MDMapT &MD() {
More information about the llvm-commits
mailing list