summaryrefslogtreecommitdiff
path: root/mlir/examples/toy/Ch4/parser/AST.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/examples/toy/Ch4/parser/AST.cpp')
-rw-r--r--mlir/examples/toy/Ch4/parser/AST.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mlir/examples/toy/Ch4/parser/AST.cpp b/mlir/examples/toy/Ch4/parser/AST.cpp
index 7b98b017d82d..875b2e268ccd 100644
--- a/mlir/examples/toy/Ch4/parser/AST.cpp
+++ b/mlir/examples/toy/Ch4/parser/AST.cpp
@@ -60,7 +60,8 @@ private:
} // namespace
/// Return a formatted string for the location of any node
-template <typename T> static std::string loc(T *node) {
+template <typename T>
+static std::string loc(T *node) {
const auto &loc = node->loc();
return (llvm::Twine("@") + *loc.file + ":" + llvm::Twine(loc.line) + ":" +
llvm::Twine(loc.col))