summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit669e7054ca20e99eff7d7bd383cde5fde093baac (patch)
tree0ae43d139e354d2c0414064c5429c56b97888912 /llvm
parenta8ba28f6e42235ff8315f23916f5b21933fba4dc (diff)
downloadbcm5719-llvm-669e7054ca20e99eff7d7bd383cde5fde093baac.tar.gz
bcm5719-llvm-669e7054ca20e99eff7d7bd383cde5fde093baac.zip
another minor datastructure tweak.
llvm-svn: 45874
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/IPO/ArgumentPromotion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index 0876a2bde31..91b3766fa20 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud