Bug 1126438: Annotate canClone() and clone() as MOZ_OVERRIDE, in MIR.h. r=ehsan
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 27 Jan 2015 11:53:25 -0800
changeset 239491 8c4a67f63f9b15643a565cfe72244e372540ac1a
parent 239490 b5a4e4c8ed85adfae07a5e466af55f4e3e0e7fac
child 239492 f579eea5dc026f64bda0510ded041ffd9197f3a6
push id500
push userjoshua.m.grant@gmail.com
push dateThu, 29 Jan 2015 01:48:36 +0000
reviewersehsan
bugs1126438
milestone38.0a1
Bug 1126438: Annotate canClone() and clone() as MOZ_OVERRIDE, in MIR.h. r=ehsan
js/src/jit/MIR.h
--- a/js/src/jit/MIR.h
+++ b/js/src/jit/MIR.h
@@ -5532,21 +5532,22 @@ class MHypot
         return true;
     }
 
     bool writeRecoverData(CompactBufferWriter &writer) const MOZ_OVERRIDE;
     bool canRecoverOnBailout() const MOZ_OVERRIDE {
         return true;
     }
 
-    bool canClone() const {
-        return true;
-    }
-
-    MInstruction *clone(TempAllocator &alloc, const MDefinitionVector &inputs) const {
+    bool canClone() const MOZ_OVERRIDE {
+        return true;
+    }
+
+    MInstruction *clone(TempAllocator &alloc,
+                        const MDefinitionVector &inputs) const MOZ_OVERRIDE {
        return MHypot::New(alloc, inputs);
     }
 };
 
 // Inline implementation of Math.pow().
 class MPow
   : public MBinaryInstruction,
     public PowPolicy::Data