forked from OSchip/llvm-project
[mlir][toy] Replace Optional::getValue with value. NFC
This commit is contained in:
parent
e590f945c6
commit
0595edd80f
|
@ -221,7 +221,7 @@ private:
|
|||
// 'return' takes an optional expression, handle that case here.
|
||||
mlir::Value expr = nullptr;
|
||||
if (ret.getExpr().hasValue()) {
|
||||
if (!(expr = mlirGen(*ret.getExpr().getValue())))
|
||||
if (!(expr = mlirGen(*ret.getExpr().value())))
|
||||
return mlir::failure();
|
||||
}
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ private:
|
|||
// 'return' takes an optional expression, handle that case here.
|
||||
mlir::Value expr = nullptr;
|
||||
if (ret.getExpr().hasValue()) {
|
||||
if (!(expr = mlirGen(*ret.getExpr().getValue())))
|
||||
if (!(expr = mlirGen(*ret.getExpr().value())))
|
||||
return mlir::failure();
|
||||
}
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ private:
|
|||
// 'return' takes an optional expression, handle that case here.
|
||||
mlir::Value expr = nullptr;
|
||||
if (ret.getExpr().hasValue()) {
|
||||
if (!(expr = mlirGen(*ret.getExpr().getValue())))
|
||||
if (!(expr = mlirGen(*ret.getExpr().value())))
|
||||
return mlir::failure();
|
||||
}
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ private:
|
|||
// 'return' takes an optional expression, handle that case here.
|
||||
mlir::Value expr = nullptr;
|
||||
if (ret.getExpr().hasValue()) {
|
||||
if (!(expr = mlirGen(*ret.getExpr().getValue())))
|
||||
if (!(expr = mlirGen(*ret.getExpr().value())))
|
||||
return mlir::failure();
|
||||
}
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ private:
|
|||
// 'return' takes an optional expression, handle that case here.
|
||||
mlir::Value expr = nullptr;
|
||||
if (ret.getExpr().hasValue()) {
|
||||
if (!(expr = mlirGen(*ret.getExpr().getValue())))
|
||||
if (!(expr = mlirGen(*ret.getExpr().value())))
|
||||
return mlir::failure();
|
||||
}
|
||||
|
||||
|
|
|
@ -358,7 +358,7 @@ private:
|
|||
// 'return' takes an optional expression, handle that case here.
|
||||
mlir::Value expr = nullptr;
|
||||
if (ret.getExpr().hasValue()) {
|
||||
if (!(expr = mlirGen(*ret.getExpr().getValue())))
|
||||
if (!(expr = mlirGen(*ret.getExpr().value())))
|
||||
return mlir::failure();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue