[llvm] [llvm] Add NodeMetadata::optUnsafeEdges (NFC) (PR #137539)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 27 12:29:25 PDT 2025
================
@@ -191,10 +192,8 @@ class NodeMetadata {
everConservativelyAllocatable(Other.everConservativelyAllocatable)
#endif
{
- if (NumOpts > 0) {
- std::copy(&Other.OptUnsafeEdges[0], &Other.OptUnsafeEdges[NumOpts],
- &OptUnsafeEdges[0]);
- }
+ if (NumOpts > 0)
----------------
kuhar wrote:
Do we need this condition? I'd expect `llvm::copy` to handle the empty case, but I could also see this being conditional useful for line-based debugging...
https://github.com/llvm/llvm-project/pull/137539
More information about the llvm-commits
mailing list