From 5bf45ee1568e846291565ef6a16eca53e60b39ec Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 30 Oct 2020 12:05:39 +0000 Subject: BitcodeReader::popValue - pass SmallVectorImpl<> as const reference. NFCI. Fixes cppcheck warning. --- llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp') diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index a99d6ba..eefb187 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -676,7 +676,7 @@ private: /// Read a value out of the specified record from slot 'Slot'. Increment Slot /// past the number of slots used by the value in the record. Return true if /// there is an error. - bool popValue(SmallVectorImpl &Record, unsigned &Slot, + bool popValue(const SmallVectorImpl &Record, unsigned &Slot, unsigned InstNum, Type *Ty, Value *&ResVal) { if (getValue(Record, Slot, InstNum, Ty, ResVal)) return true; -- cgit v1.1