another minor datastructure tweak.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45874 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp
index 0876a2b..91b3766 100644
--- a/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -328,7 +328,7 @@
 /// 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.