diff options
Diffstat (limited to 'clang/lib/Sema/SemaCXXCast.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaCXXCast.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/clang/lib/Sema/SemaCXXCast.cpp b/clang/lib/Sema/SemaCXXCast.cpp index 5485bb3e17a..16f0af14d27 100644 --- a/clang/lib/Sema/SemaCXXCast.cpp +++ b/clang/lib/Sema/SemaCXXCast.cpp @@ -1019,7 +1019,7 @@ static TryCastResult TryConstCast(Sema &Self, Expr *SrcExpr, QualType DestType,    // in multi-level pointers may change, but the level count must be the same,    // as must be the final pointee type.    while (SrcType != DestType && -         Self.UnwrapSimilarPointerTypes(SrcType, DestType)) { +         Self.Context.UnwrapSimilarPointerTypes(SrcType, DestType)) {      Qualifiers Quals;      SrcType = Self.Context.getUnqualifiedArrayType(SrcType, Quals);      DestType = Self.Context.getUnqualifiedArrayType(DestType, Quals); | 

