Skip to content

Commit c96df1e

Browse files
remove redundant call
1 parent 9442427 commit c96df1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ LogicalResult SparseTensorEncodingAttr::verifyEncoding(
926926
}
927927
if (getImplicitVal()) {
928928
auto impVal = getImplicitVal();
929-
if (auto typedAttr = llvm::dyn_cast<TypedAttr>(getImplicitVal())) {
929+
if (auto typedAttr = llvm::dyn_cast<TypedAttr>(impVal)) {
930930
Type attrType = typedAttr.getType();
931931
if (attrType != elementType) {
932932
return emitError()

0 commit comments

Comments
 (0)