summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitc678c1721198ee0ebcf1722b87bce11bfa4fc1bf (patch)
tree6f71c12c0528c967215ac70365678fc101419f80 /llvm/lib/VMCore/BasicBlock.cpp
parent0c87ad3b878a810c4dc08cd0fac449ef4c13374f (diff)
downloadbcm5719-llvm-c678c1721198ee0ebcf1722b87bce11bfa4fc1bf.tar.gz
bcm5719-llvm-c678c1721198ee0ebcf1722b87bce11bfa4fc1bf.zip
Avoid warning: control reaches end of non-void function
llvm-svn: 3081
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r--llvm/lib/VMCore/BasicBlock.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp
index 446af17be18..d0859f87432 100644
--- a/llvm/lib/VMCore/BasicBlock.cpp
+++ b/llvm/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...
OpenPOWER on IntegriCloud