diff options
| author | River Riddle <riverriddle@google.com> | 2019-02-04 10:30:45 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 16:10:24 -0700 |
| commit | a3d9ccaecbea042b59073ec34c91a343c1903a5c (patch) | |
| tree | 1342654690b36c32eb483cc9789e7af67be6c560 /mlir/lib/Transforms/StripDebugInfo.cpp | |
| parent | 9ca0691b06a421acf2dedd6dd72392e1dcfa1638 (diff) | |
| download | bcm5719-llvm-a3d9ccaecbea042b59073ec34c91a343c1903a5c.tar.gz bcm5719-llvm-a3d9ccaecbea042b59073ec34c91a343c1903a5c.zip | |
Replace the walkOps/visitOperationInst variants from the InstWalkers with the Instruction variants.
PiperOrigin-RevId: 232322030
Diffstat (limited to 'mlir/lib/Transforms/StripDebugInfo.cpp')
| -rw-r--r-- | mlir/lib/Transforms/StripDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/StripDebugInfo.cpp b/mlir/lib/Transforms/StripDebugInfo.cpp index 6e1d5ff2d11..c5e42b622ed 100644 --- a/mlir/lib/Transforms/StripDebugInfo.cpp +++ b/mlir/lib/Transforms/StripDebugInfo.cpp @@ -39,7 +39,7 @@ PassResult StripDebugInfo::runOnFunction(Function *f) { // Strip the debug info from the function and its instructions. f->setLoc(unknownLoc); - f->walkInsts([&](Instruction *inst) { inst->setLoc(unknownLoc); }); + f->walk([&](Instruction *inst) { inst->setLoc(unknownLoc); }); return success(); } |

