forked from OSchip/llvm-project
parent
5663fe6613
commit
5aafa6ee1f
|
@ -1420,13 +1420,17 @@ public:
|
||||||
|
|
||||||
virtual ReturnInst *clone() const;
|
virtual ReturnInst *clone() const;
|
||||||
|
|
||||||
Value *getReturnValue(unsigned n = 0) const {
|
Value *getOperand(unsigned n = 0) const {
|
||||||
if (getNumOperands() > 1)
|
if (getNumOperands() > 1)
|
||||||
return getOperand(n);
|
return TerminatorInst::getOperand(n);
|
||||||
else
|
else
|
||||||
return RetVal;
|
return RetVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Value *getReturnValue(unsigned n = 0) const {
|
||||||
|
return getOperand(n);
|
||||||
|
}
|
||||||
|
|
||||||
unsigned getNumSuccessors() const { return 0; }
|
unsigned getNumSuccessors() const { return 0; }
|
||||||
|
|
||||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||||
|
|
Loading…
Reference in New Issue