From cfca56c0738273b2c13c0f1c0c8ea74a5c1ecef4 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() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229524 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;