another minor datastructure tweak.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45874 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-01-11 18:47:45 +00:00
parent a10145fdf6
commit 6e8410abf1

View File

@ -328,7 +328,7 @@ namespace {
/// safe to do so. /// safe to do so.
Function *ArgPromotion::DoPromotion(Function *F, Function *ArgPromotion::DoPromotion(Function *F,
SmallVectorImpl<Argument*> &Args2Prom) { 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 // Start by computing a new prototype for the function, which is the same as
// the old function, but has modified arguments. // the old function, but has modified arguments.