[clang] [clang][bytecode][NFC] Remove unnecessary std::move call (PR #228083)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 1 06:52:59 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/228083.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Compiler.cpp (+1-1)
``````````diff
diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp
index 313687f538169..9ad0c6831535d 100644
--- a/clang/lib/AST/ByteCode/Compiler.cpp
+++ b/clang/lib/AST/ByteCode/Compiler.cpp
@@ -2709,7 +2709,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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/228083
More information about the cfe-commits
mailing list