Don't use Optional::hasValue (NFC)

This commit is contained in:
Kazu Hirata
2022-06-20 20:17:57 -07:00
parent 064a08cd95
commit 0916d96d12
55 changed files with 82 additions and 82 deletions

View File

@@ -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) {