Author: Shafik Yaghmour Date: 2025-04-24T08:15:25-07:00 New Revision: 72cc868c65b0641f23d1fb0518a8503c73ecdb5a
URL: https://github.com/llvm/llvm-project/commit/72cc868c65b0641f23d1fb0518a8503c73ecdb5a DIFF: https://github.com/llvm/llvm-project/commit/72cc868c65b0641f23d1fb0518a8503c73ecdb5a.diff LOG: [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. Added: Modified: clang/lib/Serialization/ASTReader.cpp Removed: ################################################################################ diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index 70b54b7296882..f13a173ec933e 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -5980,7 +5980,7 @@ bool ASTReader::readASTFileControlBlock( } } } - Stream = SavedStream; + Stream = std::move(SavedStream); } // Scan for the UNHASHED_CONTROL_BLOCK_ID block. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits