Skip to content

Commit 5bf45ee

Browse files
committed
BitcodeReader::popValue - pass SmallVectorImpl<> as const reference. NFCI.
Fixes cppcheck warning.
1 parent 71bf9f0 commit 5bf45ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ class BitcodeReader : public BitcodeReaderBase, public GVMaterializer {
676676
/// Read a value out of the specified record from slot 'Slot'. Increment Slot
677677
/// past the number of slots used by the value in the record. Return true if
678678
/// there is an error.
679-
bool popValue(SmallVectorImpl<uint64_t> &Record, unsigned &Slot,
679+
bool popValue(const SmallVectorImpl<uint64_t> &Record, unsigned &Slot,
680680
unsigned InstNum, Type *Ty, Value *&ResVal) {
681681
if (getValue(Record, Slot, InstNum, Ty, ResVal))
682682
return true;

0 commit comments

Comments
 (0)