Skip to content

Commit e19fc6b

Browse files
remove redundant call
1 parent b9527a0 commit e19fc6b

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
@@ -921,7 +921,7 @@ LogicalResult SparseTensorEncodingAttr::verifyEncoding(
921921
}
922922
if (getImplicitVal()) {
923923
auto impVal = getImplicitVal();
924-
if (auto typedAttr = llvm::dyn_cast<TypedAttr>(getImplicitVal())) {
924+
if (auto typedAttr = llvm::dyn_cast<TypedAttr>(impVal)) {
925925
Type attrType = typedAttr.getType();
926926
if (attrType != elementType) {
927927
return emitError()

0 commit comments

Comments
 (0)