diff options
-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 54b67ffaad..4f1222f43f 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); } |