Devirtualize Instruction::clone_impl
[oota-llvm.git] / include / llvm / IR / Instruction.h
index 752c3f09bdedc6af4b034dd374ffd0c333572d40..6e3de1f1354544d242dc169e31886f1fdf4a27a2 100644 (file)
@@ -509,8 +509,10 @@ protected:
               Instruction *InsertBefore = nullptr);
   Instruction(Type *Ty, unsigned iType, Use *Ops, unsigned NumOps,
               BasicBlock *InsertAtEnd);
-  virtual Instruction *clone_impl() const = 0;
 
+private:
+  /// Create a copy of this instruction.
+  Instruction *cloneImpl() const;
 };
 
 inline Instruction *ilist_traits<Instruction>::createSentinel() const {