Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Oct 3, 2024
1 parent 92960ed commit b789627
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/Dialect/FIRRTL/Transforms/LowerClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1196,9 +1196,8 @@ void LowerClassesPass::lowerClass(om::ClassOp classOp, FModuleLike moduleLike,

// TODO: Store set of locs?
// TODO: Document FusedLoc logic
builder.create<ClassFieldsOp>(builder.getFusedLoc({},
builder.getArrayAttr(fieldLocs)),
fieldValues);
builder.create<ClassFieldsOp>(
builder.getFusedLoc({}, builder.getArrayAttr(fieldLocs)), fieldValues);

// If the module-like is a Class, it will be completely erased later.
// Otherwise, erase just the property ports and ops.
Expand Down
3 changes: 2 additions & 1 deletion lib/Dialect/OM/Evaluator/Evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ circt::om::Evaluator::evaluateObjectInstance(StringAttr className,
// TODO: Document FusedLoc logic
assert(dyn_cast<ArrayAttr>(locs.getMetadata()));
assert(dyn_cast<LocationAttr>(cast<ArrayAttr>(locs.getMetadata())[i]));
fieldLoc = Location(cast<LocationAttr>(cast<ArrayAttr>(locs.getMetadata())[i]));
fieldLoc =
Location(cast<LocationAttr>(cast<ArrayAttr>(locs.getMetadata())[i]));
}
FailureOr<evaluator::EvaluatorValuePtr> result =
evaluateValue(value, actualParams, fieldLoc);
Expand Down

0 comments on commit b789627

Please sign in to comment.