Skip to content

Commit 72cc868

Browse files
authored
[Clang][NFC] Move temp variable back into the source (#137095)
Static analysis flagged this code b/c we are copying the temp variable back in when we could move it instead.
1 parent 4f5cfa8 commit 72cc868

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)