summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2017-01-07 01:31:18 +0000
committerDan Gohman <dan433584@gmail.com>2017-01-07 01:31:18 +0000
commitd5eda35557b3c9e395fa643c8843d9acda11eb60 (patch)
treef6e20e8588ffcd798752b709c234b80ba2067ecc /llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
parentd79e49d807201f134861ffbb575e49178340026e (diff)
downloadbcm5719-llvm-d5eda35557b3c9e395fa643c8843d9acda11eb60.tar.gz
bcm5719-llvm-d5eda35557b3c9e395fa643c8843d9acda11eb60.zip
[WebAssembly] Move a SmallVector to a more specific scope. NFC.
llvm-svn: 291324
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
index dfad5b8facd..2eb4caa89ed 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
@@ -48,8 +48,6 @@ class FixFunctionBitcasts final : public ModulePass {
bool runOnModule(Module &M) override;
- SmallVector<std::pair<Use *, Function *>, 0> Uses;
-
public:
static char ID;
FixFunctionBitcasts() : ModulePass(ID) {}
@@ -116,6 +114,8 @@ static Function *CreateWrapper(Function *F, FunctionType *Ty) {
}
bool FixFunctionBitcasts::runOnModule(Module &M) {
+ SmallVector<std::pair<Use *, Function *>, 0> Uses;
+
// Collect all the places that need wrappers.
for (Function &F : M)
FindUses(&F, F, Uses);
OpenPOWER on IntegriCloud