Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
Signed-off-by: Bangtian Liu <[email protected]>
  • Loading branch information
bangtianliu committed Jan 23, 2025
1 parent fec3cd2 commit 74cb915
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ TargetAttr createTargetAttr(const TargetDetails &details, StringRef arch,
TargetChipAttr targetChip;
if (details.chip) {
std::optional<StringAttr> skuAttr = std::nullopt;
if (details.chip->sku && !details.chip->sku->empty()) {
if (details.chip->sku) {
skuAttr = StringAttr::get(context, *details.chip->sku);
}
targetChip = TargetChipAttr::get(context, details.chip->wgpCount, skuAttr,
Expand Down

0 comments on commit 74cb915

Please sign in to comment.