Skip to content

Commit

Permalink
Remove pointless return
Browse files Browse the repository at this point in the history
  • Loading branch information
fzi-hielscher committed Jun 19, 2024
1 parent 24deff1 commit db990ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Dialect/Sim/SimOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ OpFoldResult FormatDecOp::fold(FoldAdaptor adaptor) {
unsigned padWidth = FormatDecOp::getDecimalWidth(width, getIsSigned());
padWidth = padWidth > strBuf.size() ? padWidth - strBuf.size() : 0;

SmallVector<char, 32> padding(padWidth, ' ');
SmallVector<char, 8> padding(padWidth, ' ');
return StringAttr::get(getContext(), Twine(padding) + Twine(strBuf));

return StringAttr::get(getContext(), Twine(strBuf));
}
return {};
}
Expand Down

0 comments on commit db990ae

Please sign in to comment.