diff options
| author | Geoffrey Martin-Noble <gcmn@google.com> | 2019-10-19 06:03:50 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-10-19 06:04:18 -0700 |
| commit | bc577eaf441f06c879ae8cc2edb5b1fc2e05676c (patch) | |
| tree | e54a186f0fd2260aa93539bdc2708a14dc409bfc /mlir/examples | |
| parent | c3e56cd12cf6d4ab3223d402370dc9236acd0f1b (diff) | |
| download | bcm5719-llvm-bc577eaf441f06c879ae8cc2edb5b1fc2e05676c.tar.gz bcm5719-llvm-bc577eaf441f06c879ae8cc2edb5b1fc2e05676c.zip | |
Use new eraseOp instead of replaceOp with empty values
PiperOrigin-RevId: 275631166
Diffstat (limited to 'mlir/examples')
| -rw-r--r-- | mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp b/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp index 127349f6c9d..7e300fb702d 100644 --- a/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp +++ b/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp @@ -100,7 +100,7 @@ public: ArrayRef<Value *>({formatSpecifierCst, elementLoad})); // Notify the rewriter that this operation has been removed. - rewriter.replaceOp(op, llvm::None); + rewriter.eraseOp(op); return matchSuccess(); } |

