File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ static void selectInterestingSourceRegion(
353353 std::string &SourceLine, std::string &CaretLine,
354354 std::string &FixItInsertionLine, Columns NonGutterColumns,
355355 const SourceColumnMap &Map,
356- SmallVector <clang::TextDiagnostic::StyleRange> &Styles) {
356+ SmallVectorImpl <clang::TextDiagnostic::StyleRange> &Styles) {
357357 Columns CaretColumns = CaretLine.size ();
358358 Columns FixItColumns = llvm::sys::locale::columnWidth (FixItInsertionLine);
359359 Columns MaxColumns =
@@ -522,7 +522,7 @@ static void selectInterestingSourceRegion(
522522 ? (Map.columnToByte (FrontColumnsRemoved) - Bytes (FrontEllipse.size ()))
523523 : 0 ;
524524 Bytes CodeEnd = Map.columnToByte (CaretEnd);
525- for (auto &R : Styles) {
525+ for (TextDiagnostic::StyleRange &R : Styles) {
526526 if (R.End < static_cast <unsigned >(BytesRemoved.V )) {
527527 R.Start = R.End = std::numeric_limits<int >::max ();
528528 continue ;
You can’t perform that action at this time.
0 commit comments