summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-11 18:47:45 +0000
committerChris Lattner <sabre@nondot.org>2008-01-11 18:47:45 +0000
commit6e8410abf1d8841f15d17a30dcd346038862c926 (patch)
treeb9c3c26af36ae1a90d00738e906aa09e7cf31b03 /lib/Transforms/IPO
parenta10145fdf6325c5c528689e8952ad7e4e2a1a6b5 (diff)
downloadllvm-6e8410abf1d8841f15d17a30dcd346038862c926.tar.gz
llvm-6e8410abf1d8841f15d17a30dcd346038862c926.tar.bz2
llvm-6e8410abf1d8841f15d17a30dcd346038862c926.tar.xz
another minor datastructure tweak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r--lib/Transforms/IPO/ArgumentPromotion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp
index 0876a2bde3..91b3766fa2 100644
--- a/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -328,7 +328,7 @@ namespace {
/// safe to do so.
Function *ArgPromotion::DoPromotion(Function *F,
SmallVectorImpl<Argument*> &Args2Prom) {
- std::set<Argument*> ArgsToPromote(Args2Prom.begin(), Args2Prom.end());
+ SmallPtrSet<Argument*, 8> ArgsToPromote(Args2Prom.begin(), Args2Prom.end());
// Start by computing a new prototype for the function, which is the same as
// the old function, but has modified arguments.