diff --git a/mlir/include/mlir/Support/LogicalResult.h b/mlir/include/mlir/Support/LogicalResult.h --- a/mlir/include/mlir/Support/LogicalResult.h +++ b/mlir/include/mlir/Support/LogicalResult.h @@ -96,6 +96,7 @@ private: /// Hide the bool conversion as it easily creates confusion. using Optional::operator bool; + using Optional::hasValue; using Optional::has_value; };