[llvm-commits] [llvm] r48022 - /llvm/trunk/include/llvm/Instructions.h
Devang Patel
dpatel at apple.com
Fri Mar 7 12:08:07 PST 2008
Author: dpatel
Date: Fri Mar 7 14:08:07 2008
New Revision: 48022
URL: http://llvm.org/viewvc/llvm-project?rev=48022&view=rev
Log:
RetVal is not used when there are more then one return operands.
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=48022&r1=48021&r2=48022&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Fri Mar 7 14:08:07 2008
@@ -1421,9 +1421,10 @@
virtual ReturnInst *clone() const;
Value *getReturnValue(unsigned n = 0) const {
- if (n == 0)
+ if (getNumOperands() > 1)
+ return getOperand(n);
+ else
return RetVal;
- return getOperand(n);
}
unsigned getNumSuccessors() const { return 0; }
More information about the llvm-commits
mailing list