Skip to content

Commit

Permalink
Avoid name collision
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Oct 3, 2024
1 parent 4cc1518 commit 9001f6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Dialect/OM/Evaluator/Evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ circt::om::Evaluator::evaluateObjectInstance(StringAttr className,
for (size_t i = 0; i < fieldNames.size(); ++i) {
auto name = fieldNames[i];
auto value = operands[i];
Location loc = fieldsLoc;
if (auto locs = dyn_cast<FusedLoc>(loc))
loc = locs.getLocations()[i];
Location fieldLoc = fieldsLoc;
if (auto locs = dyn_cast<FusedLoc>(fieldLoc))
fieldLoc = locs.getLocations()[i];
FailureOr<evaluator::EvaluatorValuePtr> result =
evaluateValue(value, actualParams, loc);
evaluateValue(value, actualParams, fieldLoc);
if (failed(result))
return result;

Expand Down

0 comments on commit 9001f6a

Please sign in to comment.