Skip to content

Commit d2515df

Browse files
maksleventalgysit
andauthored
Update mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp
Co-authored-by: Tobias Gysi <[email protected]>
1 parent 896d515 commit d2515df

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,7 @@ TargetFeaturesAttr TargetFeaturesAttr::getChecked(
311311
SmallVector<StringRef> features;
312312
targetFeatures.split(features, ',', /*MaxSplit=*/-1,
313313
/*KeepEmpty=*/false);
314-
SmallVector<StringAttr> featuresAttrs;
315-
featuresAttrs.reserve(features.size());
316-
for (StringRef feature : features) {
317-
featuresAttrs.push_back(StringAttr::get(context, feature));
318-
}
319-
return getChecked(emitError, context, featuresAttrs);
314+
return getChecked(emitError, context, features);
320315
}
321316

322317
LogicalResult

0 commit comments

Comments
 (0)