Skip to content

Commit 744b2ec

Browse files
committed
Forgot to fix formatting
1 parent fd1103a commit 744b2ec

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

mlir/lib/IR/BuiltinDialectBytecode.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ static FileLineColRange getFileLineColRange(MLIRContext *context,
104104
}
105105
}
106106

107-
static LogicalResult readFileLineColRangeLocs(DialectBytecodeReader &reader,
108-
SmallVectorImpl<uint64_t> &lineCols) {
107+
static LogicalResult
108+
readFileLineColRangeLocs(DialectBytecodeReader &reader,
109+
SmallVectorImpl<uint64_t> &lineCols) {
109110
return reader.readList(
110111
lineCols, [&reader](uint64_t &val) { return reader.readVarInt(val); });
111112
}

mlir/lib/IR/Location.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,20 @@ struct FileLineColRangeAttrStorage final
8282
return getTrailingObjects<unsigned>()[index - 1];
8383
}
8484

85-
unsigned getStartLine() const {
86-
return startLine;
87-
}
85+
unsigned getStartLine() const { return startLine; }
8886
unsigned getStartColumn() const {
89-
if (size() <= 1) return 0;
87+
if (size() <= 1)
88+
return 0;
9089
return getLineCols(1);
9190
}
9291
unsigned getEndColumn() const {
93-
if (size() <= 2) return getStartColumn();
92+
if (size() <= 2)
93+
return getStartColumn();
9494
return getLineCols(2);
9595
}
9696
unsigned getEndLine() const {
97-
if (size() <= 3) return getStartLine();
97+
if (size() <= 3)
98+
return getStartLine();
9899
return getLineCols(3);
99100
}
100101

0 commit comments

Comments
 (0)