From d5eda35557b3c9e395fa643c8843d9acda11eb60 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 7 Jan 2017 01:31:18 +0000 Subject: [WebAssembly] Move a SmallVector to a more specific scope. NFC. llvm-svn: 291324 --- llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp') 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, 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, 0> Uses; + // Collect all the places that need wrappers. for (Function &F : M) FindUses(&F, F, Uses); -- cgit v1.2.3