summaryrefslogtreecommitdiffstats
path: root/mlir/examples
diff options
context:
space:
mode:
authorGeoffrey Martin-Noble <gcmn@google.com>2019-10-19 06:03:50 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-10-19 06:04:18 -0700
commitbc577eaf441f06c879ae8cc2edb5b1fc2e05676c (patch)
treee54a186f0fd2260aa93539bdc2708a14dc409bfc /mlir/examples
parentc3e56cd12cf6d4ab3223d402370dc9236acd0f1b (diff)
downloadbcm5719-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.cpp2
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();
}
OpenPOWER on IntegriCloud