summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/InlineFunction.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
commitd84dbb34438d9de1c09b6860d781784d31f9f0c7 (patch)
tree097e1a609af222b8d9cb498cfc8e288763c09a44 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent9d0235dc6b832f9ec486d379799f60ae74e3d700 (diff)
downloadbcm5719-llvm-d84dbb34438d9de1c09b6860d781784d31f9f0c7.tar.gz
bcm5719-llvm-d84dbb34438d9de1c09b6860d781784d31f9f0c7.zip
smallvectorize the list of returns built by CloneAndPruneFunctionInto.
llvm-svn: 80202
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 1b9691c86c6..70570baae56 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -307,7 +307,7 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {
// Make sure to capture all of the return instructions from the cloned
// function.
- std::vector<ReturnInst*> Returns;
+ SmallVector<ReturnInst*, 8> Returns;
ClonedCodeInfo InlinedFunctionInfo;
Function::iterator FirstNewBlock;
OpenPOWER on IntegriCloud