[WebAssembly] Move a SmallVector to a more specific scope. NFC.

llvm-svn: 291324
This commit is contained in:
Dan Gohman 2017-01-07 01:31:18 +00:00
parent d79e49d807
commit d5eda35557
1 changed files with 2 additions and 2 deletions

View File

@ -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);