From 9adcdf25352514d637ddbd68cf3d1713712722cc Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 26 Jul 2007 15:25:08 +0000 Subject: [PATCH] DummyInst's member functions don't need to be virtual. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40530 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/BasicBlock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index 431bb5090a7..92734bb2138 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -40,11 +40,11 @@ namespace { LeakDetector::removeGarbageObject(this); } - virtual Instruction *clone() const { + Instruction *clone() const { assert(0 && "Cannot clone EOL");abort(); return 0; } - virtual const char *getOpcodeName() const { return "*end-of-list-inst*"; } + const char *getOpcodeName() const { return "*end-of-list-inst*"; } // Methods for support type inquiry through isa, cast, and dyn_cast... static inline bool classof(const DummyInst *) { return true; } -- 2.34.1