Skip to content

Commit 2c369d2

Browse files
committed
save
1 parent 3a18440 commit 2c369d2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/Dialect/FIRRTL/Transforms/LowerAnnotations.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,14 @@ applyConventionOrTypeLoweringAnno(const AnnoPathValue &target,
298298

299299
auto conventionStrAttr =
300300
tryGetAs<StringAttr>(anno, anno, "convention", loc, conventionAnnoClass);
301-
302301
if (!conventionStrAttr)
303302
return failure();
303+
304304
auto conventionStr = conventionStrAttr.getValue();
305305
auto conventionOpt = parseConvention(conventionStr);
306306
if (!conventionOpt)
307307
return error() << "unknown convention " << conventionStr;
308+
308309
auto convention = *conventionOpt;
309310

310311
if (convention == Convention::Internal)

lib/Dialect/FIRRTL/Transforms/LowerLayers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ FModuleOp LowerLayersPass::buildNewModule(OpBuilder &builder,
209209
llvm::sys::SmartScopedLock<true> instrumentationLock(*circuitMutex);
210210
FModuleOp newModule = builder.create<FModuleOp>(
211211
location, builder.getStringAttr(namehint),
212-
ConventionAttr::get(builder.getContext(), Convention::Internal),
213-
ports, ArrayAttr{});
212+
ConventionAttr::get(builder.getContext(), Convention::Internal), ports,
213+
ArrayAttr{});
214214
if (auto dir = getOutputFile(layerBlock.getLayerNameAttr())) {
215215
assert(dir.isDirectory());
216216
newModule->setAttr("output_file", dir);

lib/Dialect/FIRRTL/Transforms/LowerMemory.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ void LowerMemoryPass::lowerMemory(MemOp mem, const FirMemory &summary,
252252
OpBuilder b(mem->getParentOfType<FModuleOp>());
253253
auto wrapper = b.create<FModuleOp>(
254254
mem->getLoc(), wrapperName,
255-
ConventionAttr::get(context, Convention::Internal),
256-
ports);
255+
ConventionAttr::get(context, Convention::Internal), ports);
257256
SymbolTable::setSymbolVisibility(wrapper, SymbolTable::Visibility::Private);
258257

259258
// Create an instance of the external memory module. The instance has the

0 commit comments

Comments
 (0)