Skip to content

Commit ce7ba59

Browse files
RKSimonarichardson
authored andcommitted
BitcodeReader::popValue - pass SmallVectorImpl<> as const reference. NFCI.
Fixes cppcheck warning.
2 parents 210e20f + 5bf45ee commit ce7ba59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 1 addition & 1 deletion
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)