[clang] 1aeecf7 - [clang][bytecode][NFC] Remove unnecessary std::move call (#228083)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 1 21:48:45 PDT 2026


Author: Timm Baeder
Date: 2026-10-02T06:48:38+02:00
New Revision: 1aeecf7b46dc567da21e6d50f1a099a82c9e237d

URL: https://github.com/llvm/llvm-project/commit/1aeecf7b46dc567da21e6d50f1a099a82c9e237d
DIFF: https://github.com/llvm/llvm-project/commit/1aeecf7b46dc567da21e6d50f1a099a82c9e237d.diff

LOG: [clang][bytecode][NFC] Remove unnecessary std::move call (#228083)

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/Compiler.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp
index 271dea71f0da2..6afb424936202 100644
--- a/clang/lib/AST/ByteCode/Compiler.cpp
+++ b/clang/lib/AST/ByteCode/Compiler.cpp
@@ -2718,7 +2718,7 @@ bool Compiler<Emitter>::visitCallArgs(ArrayRef<const Expr *> Args,
       }
 
       UnsignedOrNone LocalIndex =
-          allocateLocal(std::move(Source), Arg->getType(), ScopeKind::Call);
+          allocateLocal(Source, Arg->getType(), ScopeKind::Call);
       if (!LocalIndex)
         return false;
 


        


More information about the cfe-commits mailing list