From f18b2da2a178fbbcac56caab0068ff0177e9c0e2 Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Tue, 17 Feb 2015 19:46:23 +0000 Subject: [PATCH] [MC] Constifying MCInst::size() llvm-svn: 229524 --- include/llvm/MC/MCInst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;