Skip to content

Commit dd2053f

Browse files
committed
Use std::optional instead of llvm::Optional
1 parent bce6c7b commit dd2053f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

mlir/lib/Tools/mlir-query/MlirQueryMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ LogicalResult mlir::mlirQueryMain(int argc, char **argv, MLIRContext &context) {
8989
LE.setListCompleter([&QS](StringRef Line, size_t Pos) {
9090
return QueryParser::complete(Line, Pos, QS);
9191
});
92-
while (llvm::Optional<std::string> Line = LE.readLine()) {
92+
while (std::optional<std::string> Line = LE.readLine()) {
9393
QueryRef Q = QueryParser::parse(*Line, QS);
9494
Q->run(llvm::outs(), QS);
9595
llvm::outs().flush();

mlir/lib/Tools/mlir-query/Query.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "Parser.h"
1313
#include "mlir/IR/Matchers.h"
1414
#include "llvm/ADT/IntrusiveRefCntPtr.h"
15-
#include "llvm/ADT/Optional.h"
1615
#include "llvm/ADT/Twine.h"
1716
#include <string>
1817

0 commit comments

Comments
 (0)