summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/ViewFunctionGraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Transforms/ViewFunctionGraph.cpp')
-rw-r--r--mlir/lib/Transforms/ViewFunctionGraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/ViewFunctionGraph.cpp b/mlir/lib/Transforms/ViewFunctionGraph.cpp
index 834424951bf..46e47a4ab1b 100644
--- a/mlir/lib/Transforms/ViewFunctionGraph.cpp
+++ b/mlir/lib/Transforms/ViewFunctionGraph.cpp
@@ -61,9 +61,9 @@ void mlir::viewGraph(Function &function, const llvm::Twine &name,
llvm::ViewGraph(&function, name, shortNames, title, program);
}
-llvm::raw_ostream &mlir::writeGraph(llvm::raw_ostream &os, Function *function,
+llvm::raw_ostream &mlir::writeGraph(llvm::raw_ostream &os, Function &function,
bool shortNames, const llvm::Twine &title) {
- return llvm::WriteGraph(os, function, shortNames, title);
+ return llvm::WriteGraph(os, &function, shortNames, title);
}
void mlir::Function::viewGraph() {
OpenPOWER on IntegriCloud