diff options
author | Devang Patel <dpatel@apple.com> | 2008-02-27 01:20:54 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-02-27 01:20:54 +0000 |
commit | e6be34a53ecbe8c2ff9f0793b13d847e94c0de91 (patch) | |
tree | 30c2f42d36d90024fb55d093df2291a961c30224 | |
parent | ba309d43aae75d155a71de91c10afc9486bbbefa (diff) |
Add comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47653 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Instructions.h | 3 | ||||
-rw-r--r-- | lib/VMCore/Instructions.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index be523b1b72..59c2762d19 100644 --- a/include/llvm/Instructions.h +++ b/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/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index e66f5e9bdf..c0b3413da3 100644 --- a/lib/VMCore/Instructions.cpp +++ b/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; |