mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 00:10:37 +00:00
Fix getOperand() for ReturnInst.
llvm-svn: 48229
This commit is contained in:
parent
cb8f342ea8
commit
5f5912ba27
@ -1420,13 +1420,17 @@ public:
|
||||
|
||||
virtual ReturnInst *clone() const;
|
||||
|
||||
Value *getReturnValue(unsigned n = 0) const {
|
||||
Value *getOperand(unsigned n = 0) const {
|
||||
if (getNumOperands() > 1)
|
||||
return getOperand(n);
|
||||
return TerminatorInst::getOperand(n);
|
||||
else
|
||||
return RetVal;
|
||||
}
|
||||
|
||||
Value *getReturnValue(unsigned n = 0) const {
|
||||
return getOperand(n);
|
||||
}
|
||||
|
||||
unsigned getNumSuccessors() const { return 0; }
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
|
Loading…
x
Reference in New Issue
Block a user