diff options
Diffstat (limited to 'clang/lib/Sema/SemaFixItUtils.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaFixItUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaFixItUtils.cpp b/clang/lib/Sema/SemaFixItUtils.cpp index 2e327ecf231..982d9cf4c26 100644 --- a/clang/lib/Sema/SemaFixItUtils.cpp +++ b/clang/lib/Sema/SemaFixItUtils.cpp @@ -58,8 +58,8 @@ bool ConversionFixItGenerator::tryToFixConversion(const Expr *FullExpr, const CanQualType FromQTy = S.Context.getCanonicalType(FromTy); const CanQualType ToQTy = S.Context.getCanonicalType(ToTy); const SourceLocation Begin = FullExpr->getSourceRange().getBegin(); - const SourceLocation End = S.PP.getLocForEndOfToken(FullExpr->getSourceRange() - .getEnd()); + const SourceLocation End = S.getLocForEndOfToken(FullExpr->getSourceRange() + .getEnd()); // Strip the implicit casts - those are implied by the compiler, not the // original source code. |

