[llvm-commits] [llvm] r47653 - in /llvm/trunk: include/llvm/Instructions.h lib/VMCore/Instructions.cpp
Devang Patel
dpatel at apple.com
Tue Feb 26 17:20:54 PST 2008
Author: dpatel
Date: Tue Feb 26 19:20:54 2008
New Revision: 47653
URL: http://llvm.org/viewvc/llvm-project?rev=47653&view=rev
Log:
Add comment.
Modified:
llvm/trunk/include/llvm/Instructions.h
llvm/trunk/lib/VMCore/Instructions.cpp
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=47653&r1=47652&r2=47653&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Tue Feb 26 19:20:54 2008
@@ -1392,6 +1392,9 @@
// ReturnInst(Value* X, Inst *I) - 'ret X' instruction, insert before I
// ReturnInst( null, BB *B) - 'ret void' instruction, insert @ end of BB
// ReturnInst(Value* X, BB *B) - 'ret X' instruction, insert @ end of BB
+ // ReturnInst(Value* X, N) - 'ret X,X+1...X+N-1' instruction
+ // ReturnInst(Value* X, N, Inst *) - 'ret X,X+1...X+N-1', insert before I
+ // ReturnInst(Value* X, N, BB *) - 'ret X,X+1...X+N-1', insert @ end of BB
//
// NOTE: If the Value* passed is of type void then the constructor behaves as
// if it was passed NULL.
Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=47653&r1=47652&r2=47653&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Tue Feb 26 19:20:54 2008
@@ -617,7 +617,6 @@
}
void ReturnInst::init(Value * const* retVals, unsigned N) {
-
assert (N > 0 && "Invalid operands numbers in ReturnInst init");
NumOperands = N;
More information about the llvm-commits
mailing list