[llvm] 6e3d471 - [DeadArgElim] Replace insert with emplace (NFC)
Pavel Samolysov via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 25 00:34:18 PDT 2022
Author: Pavel Samolysov
Date: 2022-06-25T10:31:27+03:00
New Revision: 6e3d4712b90bf91ae369475c84ac23d6a5af0796
URL: https://github.com/llvm/llvm-project/commit/6e3d4712b90bf91ae369475c84ac23d6a5af0796
DIFF: https://github.com/llvm/llvm-project/commit/6e3d4712b90bf91ae369475c84ac23d6a5af0796.diff
LOG: [DeadArgElim] Replace insert with emplace (NFC)
Added:
Modified:
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
index 90dd7358c7d57..99fa4baf355db 100644
--- a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
+++ b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
@@ -660,7 +660,7 @@ void DeadArgumentEliminationPass::markValue(const RetOrArg &RA, Liveness L,
}
// Note any uses of this value, so this value can be
// marked live whenever one of the uses becomes live.
- Uses.insert(std::make_pair(MaybeLiveUse, RA));
+ Uses.emplace(MaybeLiveUse, RA);
}
break;
}
More information about the llvm-commits
mailing list