aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/BasicBlock.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-25 15:39:05 +0000
committerChris Lattner <sabre@nondot.org>2002-07-25 15:39:05 +0000
commitb2e80a69514485c36442ea849063313e6db13e09 (patch)
tree9465c80582a0be6325203a1786cfb599e26c52ec /lib/VMCore/BasicBlock.cpp
parent2440db2cb46a9d51e891e03dd2f9541f6ea966c5 (diff)
Avoid warning: control reaches end of non-void function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/BasicBlock.cpp')
-rw-r--r--lib/VMCore/BasicBlock.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp
index 446af17be1..d0859f8743 100644
--- a/lib/VMCore/BasicBlock.cpp
+++ b/lib/VMCore/BasicBlock.cpp
@@ -20,7 +20,10 @@
struct DummyInst : public Instruction {
DummyInst() : Instruction(Type::VoidTy, NumOtherOps) {}
- virtual Instruction *clone() const { assert(0 && "Cannot clone EOL");abort();}
+ virtual Instruction *clone() const {
+ assert(0 && "Cannot clone EOL");abort();
+ return 0;
+ }
virtual const char *getOpcodeName() const { return "*end-of-list-inst*"; }
// Methods for support type inquiry through isa, cast, and dyn_cast...