diff options
-rw-r--r-- | include/llvm/Instructions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index dc29b9a8f8..b501b8eb9f 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -191,6 +191,10 @@ public: FreeInst(Value *Ptr, BasicBlock *InsertAfter); virtual FreeInst *clone() const; + + // Accessor methods for consistency with other memory operations + Value *getPointerOperand() { return getOperand(0); } + const Value *getPointerOperand() const { return getOperand(0); } // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const FreeInst *) { return true; } |