diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index 5e25372be4a..aed734765b3 100644 --- a/include/llvm/MC/MCInst.h +++ b/include/llvm/MC/MCInst.h @@ -169,7 +169,7 @@ public: } void clear() { Operands.clear(); } - size_t size() { return Operands.size(); } + size_t size() const { return Operands.size(); } typedef SmallVectorImpl::iterator iterator; typedef SmallVectorImpl::const_iterator const_iterator;