[cfe-commits] r109735 - in /cfe/trunk/lib/CodeGen: ABIInfo.h CGCall.cpp

Chris Lattner sabre at nondot.org
Wed Jul 28 23:44:09 PDT 2010


Author: lattner
Date: Thu Jul 29 01:44:09 2010
New Revision: 109735

URL: http://llvm.org/viewvc/llvm-project?rev=109735&view=rev
Log:
fix a builder, why didn't clang++ catch this?

Modified:
    cfe/trunk/lib/CodeGen/ABIInfo.h
    cfe/trunk/lib/CodeGen/CGCall.cpp

Modified: cfe/trunk/lib/CodeGen/ABIInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/ABIInfo.h?rev=109735&r1=109734&r2=109735&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/ABIInfo.h (original)
+++ cfe/trunk/lib/CodeGen/ABIInfo.h Thu Jul 29 01:44:09 2010
@@ -52,7 +52,7 @@
       Ignore,    /// Ignore the argument (treat as void). Useful for
                  /// void and empty structs.
 
-       Expand,    /// Only valid for aggregate argument types. The
+      Expand,    /// Only valid for aggregate argument types. The
                  /// structure should be expanded into consecutive
                  /// arguments for its constituent fields. Currently
                  /// expand is only allowed on structures whose fields

Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=109735&r1=109734&r2=109735&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Thu Jul 29 01:44:09 2010
@@ -636,7 +636,7 @@
     }
 
     case ABIArgInfo::Extend:
-    case ABIArgInfo::Direct:
+    case ABIArgInfo::Direct: {
       // If the coerce-to type is a first class aggregate, flatten it.  Either
       // way is semantically identical, but fast-isel and the optimizer
       // generally likes scalar values better than FCAs.
@@ -648,6 +648,7 @@
         ArgTys.push_back(ArgTy);
       }
       break;
+    }
 
     case ABIArgInfo::Expand:
       GetExpandedTypes(it->type, ArgTys, IsRecursive);





More information about the cfe-commits mailing list