[clang] [lldb] [llvm] [mlir] [NFC][Support] Add llvm::uninitialized_copy (PR #138174)
Rahul Joshi via cfe-commits
cfe-commits at lists.llvm.org
Fri May 2 08:55:57 PDT 2025
================
@@ -2981,7 +2981,7 @@ ScalarEvolution::getOrCreateAddExpr(ArrayRef<const SCEV *> Ops,
static_cast<SCEVAddExpr *>(UniqueSCEVs.FindNodeOrInsertPos(ID, IP));
if (!S) {
const SCEV **O = SCEVAllocator.Allocate<const SCEV *>(Ops.size());
- std::uninitialized_copy(Ops.begin(), Ops.end(), O);
+ llvm::uninitialized_copy(Ops, O);
----------------
jurahul wrote:
need it? No. But it seems we have this unwritten convention to use llvm:: explicitly for many of this llvm specializations of C++ standard library functions (albeit used inconsistently). I've been meaning to ask on the forum about this but not gotten around. I'll do that now.
https://github.com/llvm/llvm-project/pull/138174
More information about the cfe-commits
mailing list