diff options
Diffstat (limited to 'mlir/lib/Transforms/ViewFunctionGraph.cpp')
| -rw-r--r-- | mlir/lib/Transforms/ViewFunctionGraph.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mlir/lib/Transforms/ViewFunctionGraph.cpp b/mlir/lib/Transforms/ViewFunctionGraph.cpp index 4865859b9ec..14e21770e25 100644 --- a/mlir/lib/Transforms/ViewFunctionGraph.cpp +++ b/mlir/lib/Transforms/ViewFunctionGraph.cpp @@ -83,7 +83,7 @@ struct PrintCFGPass : public FunctionPass { return success(); } - static char passID; + constexpr static PassID passID = {}; private: llvm::raw_ostream &os; @@ -92,8 +92,6 @@ private: }; } // namespace -char PrintCFGPass::passID = 0; - FunctionPass *mlir::createPrintCFGGraphPass(llvm::raw_ostream &os, bool shortNames, const llvm::Twine &title) { |

