Skip to content

Commit ed4a681

Browse files
shafikIanWood1
authored andcommitted
[Clang][NFC] Move temp variable back into the source (llvm#137095)
Static analysis flagged this code b/c we are copying the temp variable back in when we could move it instead.
1 parent 13be494 commit ed4a681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5980,7 +5980,7 @@ bool ASTReader::readASTFileControlBlock(
59805980
}
59815981
}
59825982
}
5983-
Stream = SavedStream;
5983+
Stream = std::move(SavedStream);
59845984
}
59855985

59865986
// Scan for the UNHASHED_CONTROL_BLOCK_ID block.

0 commit comments

Comments
 (0)