diff --git a/llvm/include/llvm/MC/MCInst.h b/llvm/include/llvm/MC/MCInst.h index ea85b9a11c87..4688b5f2b6e9 100644 --- a/llvm/include/llvm/MC/MCInst.h +++ b/llvm/include/llvm/MC/MCInst.h @@ -167,11 +167,11 @@ public: void addOperand(const MCOperand &Op) { Operands.push_back(Op); } - void clear() { Operands.clear(); } - size_t size() const { return Operands.size(); } - typedef SmallVectorImpl::iterator iterator; typedef SmallVectorImpl::const_iterator const_iterator; + void clear() { Operands.clear(); } + void erase(iterator I) { Operands.erase(I); } + size_t size() const { return Operands.size(); } iterator begin() { return Operands.begin(); } const_iterator begin() const { return Operands.begin(); } iterator end() { return Operands.end(); }