[cfe-commits] r139042 - /cfe/trunk/lib/Sema/SemaExpr.cpp

Richard Trieu rtrieu at google.com
Fri Sep 2 14:44:27 PDT 2011


Author: rtrieu
Date: Fri Sep  2 16:44:27 2011
New Revision: 139042

URL: http://llvm.org/viewvc/llvm-project?rev=139042&view=rev
Log:
Fix some indenting issues in SemaExpr.cpp

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=139042&r1=139041&r2=139042&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Fri Sep  2 16:44:27 2011
@@ -6249,8 +6249,7 @@
 /// \brief Returns false if the pointers are converted to a composite type,
 /// true otherwise.
 static bool convertPointersToCompositeType(Sema &S, SourceLocation Loc,
-                                               ExprResult &lex,
-                                               ExprResult &rex) {
+                                           ExprResult &lex, ExprResult &rex) {
   // C++ [expr.rel]p2:
   //   [...] Pointer conversions (4.10) and qualification
   //   conversions (4.4) are performed on pointer operands (or on
@@ -6277,8 +6276,8 @@
          (lType->isMemberPointerType() && rType->isMemberPointerType()));
 
   bool NonStandardCompositeType = false;
-  QualType T = S.FindCompositePointerType(Loc, lex, rex,
-                           S.isSFINAEContext() ? 0 : &NonStandardCompositeType);
+  bool *BoolPtr = S.isSFINAEContext() ? 0 : &NonStandardCompositeType;
+  QualType T = S.FindCompositePointerType(Loc, lex, rex, BoolPtr);
   if (T.isNull()) {
     diagnoseDistinctPointerComparison(S, Loc, lex, rex, /*isError*/true);
     return true;





More information about the cfe-commits mailing list