diff options
author | Devang Patel <dpatel@apple.com> | 2008-02-20 18:36:16 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-02-20 18:36:16 +0000 |
commit | b211bf507c2cfe5bfa14eae980d41637147d96ab (patch) | |
tree | bb081c4ff18112d9284acfd5d0a9ecedf5a85e75 /include | |
parent | c25c774677d2c2612674c3ad0ed387809c7734b3 (diff) | |
download | external_llvm-b211bf507c2cfe5bfa14eae980d41637147d96ab.zip external_llvm-b211bf507c2cfe5bfa14eae980d41637147d96ab.tar.gz external_llvm-b211bf507c2cfe5bfa14eae980d41637147d96ab.tar.bz2 |
Fix typo. Add const version of getAggregateValue() accessor member function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Instructions.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 54b67ff..4f1222f 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -2371,10 +2371,15 @@ public: return Ops[0]->getType(); } - Value *getAggregateValue() { + inline Value *getAggregateValue() { return getOperand(0); } - const Value *geIndex() { + + inline const Value *getAggregateValue() const { + return getOperand(0); + } + + const Value *getIndex() { return getOperand(1); } |