summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-02-27 01:20:54 +0000
committerDevang Patel <dpatel@apple.com>2008-02-27 01:20:54 +0000
commit5bc621c6806e61b260a0d3c03a51e5dbf11f60e1 (patch)
tree4400ea6a3641ebf00d79750e4f8dccc96fd8ad89
parent3f86109fd1ed9ea215f1ab2be9453f0a059f8306 (diff)
downloadbcm5719-llvm-5bc621c6806e61b260a0d3c03a51e5dbf11f60e1.tar.gz
bcm5719-llvm-5bc621c6806e61b260a0d3c03a51e5dbf11f60e1.zip
Add comment.
llvm-svn: 47653
-rw-r--r--llvm/include/llvm/Instructions.h3
-rw-r--r--llvm/lib/VMCore/Instructions.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h
index be523b1b723..59c2762d199 100644
--- a/llvm/include/llvm/Instructions.h
+++ b/llvm/include/llvm/Instructions.h
@@ -1392,6 +1392,9 @@ public:
// 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.
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index e66f5e9bdf0..c0b3413da33 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/lib/VMCore/Instructions.cpp
@@ -617,7 +617,6 @@ ReturnInst::ReturnInst(Value * const* retVals, unsigned N)
}
void ReturnInst::init(Value * const* retVals, unsigned N) {
-
assert (N > 0 && "Invalid operands numbers in ReturnInst init");
NumOperands = N;
OpenPOWER on IntegriCloud