mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-18 17:59:45 +00:00
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
This commit is contained in:
parent
2440db2cb4
commit
b2e80a6951
@ -49,6 +49,7 @@ public:
|
||||
virtual const BasicBlock *getSuccessor(unsigned idx) const {
|
||||
assert(0 && "ReturnInst has no successors!");
|
||||
abort();
|
||||
return 0;
|
||||
}
|
||||
virtual void setSuccessor(unsigned idx, BasicBlock *NewSucc) {
|
||||
assert(0 && "ReturnInst has no successors!");
|
||||
|
@ -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...
|
||||
|
Loading…
x
Reference in New Issue
Block a user