diff options
| author | Mehdi Amini <aminim@google.com> | 2019-03-27 13:57:02 -0700 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 17:47:11 -0700 |
| commit | 3518122e86c864276da532c15610c86bc57c0a56 (patch) | |
| tree | f0ecd8dadc1f0d4cbc377547706e2fe9e2cd2ee4 /mlir/lib/Transforms/StripDebugInfo.cpp | |
| parent | 7641900d2fa649ba0faefdfeb5e5be52f09a6902 (diff) | |
| download | bcm5719-llvm-3518122e86c864276da532c15610c86bc57c0a56.tar.gz bcm5719-llvm-3518122e86c864276da532c15610c86bc57c0a56.zip | |
Simplify API uses of `getContext()` (NFC)
The Pass base class is providing a convenience getContext() accessor.
PiperOrigin-RevId: 240634961
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 bc2b4b93023..9d6b7a0ba27 100644 --- a/mlir/lib/Transforms/StripDebugInfo.cpp +++ b/mlir/lib/Transforms/StripDebugInfo.cpp @@ -30,7 +30,7 @@ struct StripDebugInfo : public FunctionPass<StripDebugInfo> { void StripDebugInfo::runOnFunction() { Function &func = getFunction(); - UnknownLoc unknownLoc = UnknownLoc::get(func.getContext()); + UnknownLoc unknownLoc = UnknownLoc::get(&getContext()); // Strip the debug info from the function and its instructions. func.setLoc(unknownLoc); |

