summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/CloneModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-27 04:02:30 +0000
committerChris Lattner <sabre@nondot.org>2009-08-27 04:02:30 +0000
commitec1bea0d94372985a0a5eb283e644c6d0dd345dc (patch)
tree454809f94dd8161e3f835ba8d2abc50e8e4e7b16 /lib/Transforms/Utils/CloneModule.cpp
parent597ef105771dc7cac190fa67b7b28d34c6df0d5a (diff)
downloadllvm-ec1bea0d94372985a0a5eb283e644c6d0dd345dc.tar.gz
llvm-ec1bea0d94372985a0a5eb283e644c6d0dd345dc.tar.bz2
llvm-ec1bea0d94372985a0a5eb283e644c6d0dd345dc.tar.xz
smallvectorize the list of returns built by CloneAndPruneFunctionInto.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/CloneModule.cpp')
-rw-r--r--lib/Transforms/Utils/CloneModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/CloneModule.cpp b/lib/Transforms/Utils/CloneModule.cpp
index 13b2d46971..0285f8c8d1 100644
--- a/lib/Transforms/Utils/CloneModule.cpp
+++ b/lib/Transforms/Utils/CloneModule.cpp
@@ -108,7 +108,7 @@ Module *llvm::CloneModule(const Module *M,
ValueMap[J] = DestI++;
}
- std::vector<ReturnInst*> Returns; // Ignore returns cloned...
+ SmallVector<ReturnInst*, 8> Returns; // Ignore returns cloned.
CloneFunctionInto(F, I, ValueMap, Returns);
}