BitcodeReader::popValue - pass SmallVectorImpl<> as const reference. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 30 Oct 2020 12:05:39 +0000 (12:05 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 30 Oct 2020 14:33:19 +0000 (14:33 +0000)
Fixes cppcheck warning.

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

index a99d6ba..eefb187 100644 (file)
@@ -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<uint64_t> &Record, unsigned &Slot,
+  bool popValue(const SmallVectorImpl<uint64_t> &Record, unsigned &Slot,
                 unsigned InstNum, Type *Ty, Value *&ResVal) {
     if (getValue(Record, Slot, InstNum, Ty, ResVal))
       return true;