summaryrefslogtreecommitdiff
path: root/include/llvm/Instructions.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-06 16:59:24 +0000
committerDan Gohman <gohman@apple.com>2010-10-06 16:59:24 +0000
commit8faa6af43d348df4d8dbce9432073ec977edc2ae (patch)
tree4b9919ab02cb3bc3bf193aa6bc4b8b6da3850115 /include/llvm/Instructions.h
parent4dea941c8de1b40717f5b788c993c325e9f7540c (diff)
downloadllvm-8faa6af43d348df4d8dbce9432073ec977edc2ae.tar.gz
llvm-8faa6af43d348df4d8dbce9432073ec977edc2ae.tar.bz2
llvm-8faa6af43d348df4d8dbce9432073ec977edc2ae.tar.xz
Remove compatibilty code for old-style multiple return values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index a17fb9fc19..a7be756c0b 100644
--- a/include/llvm/Instructions.h
+++ b/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; }