Bug 1331900 - Delete Label's assignment operator. r=bbouvier
authorLars T Hansen <lhansen@mozilla.com>
Wed, 18 Jan 2017 11:44:29 +0100
changeset 329824 6d0d4f9708620442c59939e7ea87cce08155e509
parent 329823 f4b6c78a36f8b9360fd47dacc6d95c24ce60fbd4
child 329825 18ea64fbf389b11d693899051eb182963dc283d2
push id85826
push userlhansen@mozilla.com
push dateWed, 18 Jan 2017 11:32:38 +0000
treeherdermozilla-inbound@6d0d4f970862 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbouvier
bugs1331900
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1331900 - Delete Label's assignment operator. r=bbouvier
js/src/jit/Label.h
--- a/js/src/jit/Label.h
+++ b/js/src/jit/Label.h
@@ -15,18 +15,18 @@ namespace jit {
 struct LabelBase
 {
   protected:
     // offset_ >= 0 means that the label is either bound or has incoming
     // uses and needs to be bound.
     int32_t offset_ : 31;
     bool bound_   : 1;
 
-    // Disallow assignment.
-    void operator =(const LabelBase& label);
+    void operator =(const LabelBase& label) = delete;
+
   public:
     static const int32_t INVALID_OFFSET = -1;
 
     LabelBase() : offset_(INVALID_OFFSET), bound_(false)
     { }
 
     // If the label is bound, all incoming edges have been patched and any
     // future incoming edges will be immediately patched.