Skip to content

Commit

Permalink
[firtool] initialize the disableLayerSink flag (#7995)
Browse files Browse the repository at this point in the history
When this option was added to the FirtoolOptions struct it was not given an initial value, which could later be read. This change also sets the initial value of the CL option flag.
  • Loading branch information
youngar authored Dec 15, 2024
1 parent 53a427d commit 2bd0e37
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/Firtool/Firtool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,9 @@ struct FirtoolCmdOptions {
"release", "Compile with optimizations")),
llvm::cl::init(firtool::FirtoolOptions::BuildModeDefault)};

llvm::cl::opt<bool> disableLayerSink{
"disable-layer-sink",
llvm::cl::desc("Disable layer sink"),
};
llvm::cl::opt<bool> disableLayerSink{"disable-layer-sink",
llvm::cl::desc("Disable layer sink"),
cl::init(false)};

llvm::cl::opt<bool> disableOptimization{
"disable-opt",
Expand Down Expand Up @@ -770,9 +769,10 @@ circt::firtool::FirtoolOptions::FirtoolOptions()
allowAddingPortsOnPublic(false), probesToSignals(false),
preserveAggregate(firrtl::PreserveAggregate::None),
preserveMode(firrtl::PreserveValues::None), enableDebugInfo(false),
buildMode(BuildModeRelease), disableOptimization(false),
exportChiselInterface(false), chiselInterfaceOutDirectory(""),
vbToBV(false), noDedup(false), companionMode(firrtl::CompanionMode::Bind),
buildMode(BuildModeRelease), disableLayerSink(false),
disableOptimization(false), exportChiselInterface(false),
chiselInterfaceOutDirectory(""), vbToBV(false), noDedup(false),
companionMode(firrtl::CompanionMode::Bind),
disableAggressiveMergeConnections(false), advancedLayerSink(false),
lowerMemories(false), blackBoxRootPath(""), replSeqMem(false),
replSeqMemFile(""), extractTestCode(false), ignoreReadEnableMem(false),
Expand Down

0 comments on commit 2bd0e37

Please sign in to comment.