diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-25 15:39:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-25 15:39:05 +0000 |
commit | c678c1721198ee0ebcf1722b87bce11bfa4fc1bf (patch) | |
tree | 6f71c12c0528c967215ac70365678fc101419f80 /llvm/lib/VMCore/BasicBlock.cpp | |
parent | 0c87ad3b878a810c4dc08cd0fac449ef4c13374f (diff) | |
download | bcm5719-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.cpp | 5 |
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... |