diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp index 0876a2bde31..91b3766fa20 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 &Args2Prom) { - std::set ArgsToPromote(Args2Prom.begin(), Args2Prom.end()); + SmallPtrSet 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.