Use 'override/final' instead of 'virtual' for overridden methods
[oota-llvm.git] / lib / ExecutionEngine / Interpreter / Interpreter.h
index 1661b034e5245047ae8840e0bfaf4878ff72ad03..0dc0463903d4d4606c7ef6296d126ee66cae32ac 100644 (file)
@@ -87,6 +87,7 @@ struct ExecutionContext {
     Values = std::move(O.Values);
     VarArgs = std::move(O.VarArgs);
     Allocas = std::move(O.Allocas);
+    return *this;
   }
 };
 
@@ -107,7 +108,7 @@ class Interpreter : public ExecutionEngine, public InstVisitor<Interpreter> {
 
 public:
   explicit Interpreter(std::unique_ptr<Module> M);
-  ~Interpreter();
+  ~Interpreter() override;
 
   /// runAtExitHandlers - Run any functions registered by the program's calls to
   /// atexit(3), which we intercept and store in AtExitHandlers.