From: Devang Patel Date: Wed, 20 Feb 2008 18:36:16 +0000 (+0000) Subject: Fix typo. Add const version of getAggregateValue() accessor member function. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2d2ae34d7e2cdbaa8bb2ef4da0e58c91c9e36f85;p=oota-llvm.git 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 --- diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 54b67ffaad7..4f1222f43f6 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); }