[llvm] r291324 - [WebAssembly] Move a SmallVector to a more specific scope. NFC.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 6 17:31:18 PST 2017
Author: djg
Date: Fri Jan 6 19:31:18 2017
New Revision: 291324
URL: http://llvm.org/viewvc/llvm-project?rev=291324&view=rev
Log:
[WebAssembly] Move a SmallVector to a more specific scope. NFC.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp?rev=291324&r1=291323&r2=291324&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp Fri Jan 6 19:31:18 2017
@@ -48,8 +48,6 @@ class FixFunctionBitcasts final : public
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
}
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);
More information about the llvm-commits
mailing list