[llvm-commits] [llvm] r48229 - /llvm/trunk/include/llvm/Instructions.h
Devang Patel
dpatel at apple.com
Tue Mar 11 10:35:03 PDT 2008
Author: dpatel
Date: Tue Mar 11 12:35:03 2008
New Revision: 48229
URL: http://llvm.org/viewvc/llvm-project?rev=48229&view=rev
Log:
Fix getOperand() for ReturnInst.
Modified:
llvm/trunk/include/llvm/Instructions.h
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=48229&r1=48228&r2=48229&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Tue Mar 11 12:35:03 2008
@@ -1420,13 +1420,17 @@
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:
More information about the llvm-commits
mailing list