From bf40818928d2a7f76a4ba9abee469a7d02225ab2 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 27 Nov 2008 00:52:49 +0000 Subject: [PATCH] Cleanup formatting git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60140 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaOverload.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index d14d74cb82..43b5e77e87 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -783,7 +783,8 @@ bool Sema::IsPointerConversion(Expr *From, QualType FromType, QualType ToType, // can be converted to an rvalue of type "pointer to cv void" (C++ // 4.10p2). if (FromPointeeType->isIncompleteOrObjectType() && ToPointeeType->isVoidType()) { - ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, ToPointeeType, + ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, + ToPointeeType, ToType, Context); return true; } @@ -803,7 +804,8 @@ bool Sema::IsPointerConversion(Expr *From, QualType FromType, QualType ToType, // here. That is handled by CheckPointerConversion. if (FromPointeeType->isRecordType() && ToPointeeType->isRecordType() && IsDerivedFrom(FromPointeeType, ToPointeeType)) { - ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, ToPointeeType, + ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, + ToPointeeType, ToType, Context); return true; } @@ -814,7 +816,8 @@ bool Sema::IsPointerConversion(Expr *From, QualType FromType, QualType ToType, const ObjCInterfaceType* ToIface = ToPointeeType->getAsObjCInterfaceType(); if (FromIface && ToIface && Context.canAssignObjCInterfaces(ToIface, FromIface)) { - ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, ToPointeeType, + ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, + ToPointeeType, ToType, Context); return true; } @@ -823,7 +826,8 @@ bool Sema::IsPointerConversion(Expr *From, QualType FromType, QualType ToType, // to any interface (in both directions). if ((FromIface && Context.isObjCIdType(ToPointeeType)) || (ToIface && Context.isObjCIdType(FromPointeeType))) { - ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, ToPointeeType, + ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, + ToPointeeType, ToType, Context); return true; } -- 2.40.0