[cfe-commits] r60140 - /cfe/trunk/lib/Sema/SemaOverload.cpp
Douglas Gregor
doug.gregor at gmail.com
Wed Nov 26 16:52:50 PST 2008
Author: dgregor
Date: Wed Nov 26 18:52:49 2008
New Revision: 60140
URL: http://llvm.org/viewvc/llvm-project?rev=60140&view=rev
Log:
Cleanup formatting
Modified:
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=60140&r1=60139&r2=60140&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Wed Nov 26 18:52:49 2008
@@ -783,7 +783,8 @@
// 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 @@
// 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 @@
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 @@
// 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;
}
More information about the cfe-commits
mailing list