Skip to content

Commit edf4780

Browse files
committed
[BitcodeReader] Fix use-after-move
1 parent de54e4a commit edf4780

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
@@ -831,7 +831,7 @@ BitcodeReader::BitcodeReader(BitstreamCursor Stream, StringRef Strtab,
831831
StringRef ProducerIdentification,
832832
LLVMContext &Context)
833833
: BitcodeReaderBase(std::move(Stream), Strtab), Context(Context),
834-
ValueList(Context, Stream.SizeInBytes()) {
834+
ValueList(Context, this->Stream.SizeInBytes()) {
835835
this->ProducerIdentification = std::string(ProducerIdentification);
836836
}
837837

0 commit comments

Comments
 (0)