aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-10-30 12:05:39 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-10-30 14:33:19 +0000
commit5bf45ee1568e846291565ef6a16eca53e60b39ec (patch)
tree63d50fc67355343fb091038f2218647924e77e69 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent71bf9f07d514e160ff130eced53248667021829d (diff)
downloadllvm-5bf45ee1568e846291565ef6a16eca53e60b39ec.zip
llvm-5bf45ee1568e846291565ef6a16eca53e60b39ec.tar.gz
llvm-5bf45ee1568e846291565ef6a16eca53e60b39ec.tar.bz2
BitcodeReader::popValue - pass SmallVectorImpl<> as const reference. NFCI.
Fixes cppcheck warning.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
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<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;