Skip to content

Commit

Permalink
[BitcodeReader] Fix use-after-move
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Feb 14, 2022
1 parent de54e4a commit edf4780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Bitcode/Reader/BitcodeReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ BitcodeReader::BitcodeReader(BitstreamCursor Stream, StringRef Strtab,
StringRef ProducerIdentification,
LLVMContext &Context)
: BitcodeReaderBase(std::move(Stream), Strtab), Context(Context),
ValueList(Context, Stream.SizeInBytes()) {
ValueList(Context, this->Stream.SizeInBytes()) {
this->ProducerIdentification = std::string(ProducerIdentification);
}

Expand Down

0 comments on commit edf4780

Please sign in to comment.