diff options
| author | Dan Gohman <gohman@apple.com> | 2010-10-06 16:59:24 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-10-06 16:59:24 +0000 |
| commit | 3ab7e510e9627f1c4a373a8aa266f325773019c6 (patch) | |
| tree | a81e2302245838dcae69a80d58f7322c8f97765e | |
| parent | 8025f89860087006c77ff6c74793fcf8e7899b31 (diff) | |
| download | bcm5719-llvm-3ab7e510e9627f1c4a373a8aa266f325773019c6.tar.gz bcm5719-llvm-3ab7e510e9627f1c4a373a8aa266f325773019c6.zip | |
Remove compatibilty code for old-style multiple return values.
llvm-svn: 115799
| -rw-r--r-- | llvm/include/llvm/Instructions.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index a17fb9fc197..a7be756c0bc 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/include/llvm/Instructions.h @@ -1989,11 +1989,9 @@ public: /// Provide fast operand accessors DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value); - /// Convenience accessor - Value *getReturnValue(unsigned n = 0) const { - return n < getNumOperands() - ? getOperand(n) - : 0; + /// Convenience accessor. Returns null if there is no return value. + Value *getReturnValue() const { + return getNumOperands() != 0 ? getOperand(0) : 0; } unsigned getNumSuccessors() const { return 0; } |

