Skip to content

Commit 9515ab9

Browse files
committed
Declare local cl::opt flags static
1 parent 5f003fd commit 9515ab9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ static llvm::cl::opt<bool> SILViewSILGenCFG(
6161
"sil-view-silgen-cfg", llvm::cl::init(false),
6262
llvm::cl::desc("Enable the sil cfg viewer pass before diagnostics"));
6363

64-
llvm::cl::opt<bool> EnableDeinitDevirtualizer(
65-
"enable-deinit-devirtualizer", llvm::cl::init(false),
66-
llvm::cl::desc("Enable the DeinitDevirtualizer pass."));
64+
static llvm::cl::opt<bool>
65+
EnableDeinitDevirtualizer("enable-deinit-devirtualizer", llvm::cl::init(false),
66+
llvm::cl::desc("Enable the DestroyHoisting pass."));
6767

6868
// Temporary flag until the stdlib builds with ~Escapable
69-
llvm::cl::opt<bool>
69+
static llvm::cl::opt<bool>
7070
EnableLifetimeDependenceInsertion(
7171
"enable-lifetime-dependence-insertion", llvm::cl::init(false),
7272
llvm::cl::desc("Enable lifetime dependence insertion."));
7373

7474
// Temporary flag until the stdlib builds with ~Escapable
75-
llvm::cl::opt<bool>
75+
static llvm::cl::opt<bool>
7676
EnableLifetimeDependenceDiagnostics(
7777
"enable-lifetime-dependence-diagnostics", llvm::cl::init(false),
7878
llvm::cl::desc("Enable lifetime dependence diagnostics."));

0 commit comments

Comments
 (0)