Don't use Optional::hasValue (NFC)
This commit is contained in:
@@ -657,7 +657,7 @@ public:
|
||||
Value zero = constantIndex(rewriter, loc, 0);
|
||||
Value one = constantIndex(rewriter, loc, 1);
|
||||
auto indicesValues = genSplitSparseConstant(rewriter, loc, src);
|
||||
bool isCOOConstant = indicesValues.hasValue();
|
||||
bool isCOOConstant = indicesValues.has_value();
|
||||
Value indices;
|
||||
Value values;
|
||||
if (isCOOConstant) {
|
||||
|
||||
Reference in New Issue
Block a user