r228191 - Update inaccurate comment about inalloca

Reid Kleckner reid at kleckner.net
Wed Feb 4 12:50:29 PST 2015


Author: rnk
Date: Wed Feb  4 14:50:29 2015
New Revision: 228191

URL: http://llvm.org/viewvc/llvm-project?rev=228191&view=rev
Log:
Update inaccurate comment about inalloca

I meant to say it was like indirect+byval and not direct. It is not at
all like direct.

Modified:
    cfe/trunk/include/clang/CodeGen/CGFunctionInfo.h

Modified: cfe/trunk/include/clang/CodeGen/CGFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/CodeGen/CGFunctionInfo.h?rev=228191&r1=228190&r2=228191&view=diff
==============================================================================
--- cfe/trunk/include/clang/CodeGen/CGFunctionInfo.h (original)
+++ cfe/trunk/include/clang/CodeGen/CGFunctionInfo.h Wed Feb  4 14:50:29 2015
@@ -63,10 +63,10 @@ public:
     Expand,
 
     /// InAlloca - Pass the argument directly using the LLVM inalloca attribute.
-    /// This is similar to 'direct', except it only applies to arguments stored
-    /// in memory and forbids any implicit copies.  When applied to a return
-    /// type, it means the value is returned indirectly via an implicit sret
-    /// parameter stored in the argument struct.
+    /// This is similar to indirect with byval, except it only applies to
+    /// arguments stored in memory and forbids any implicit copies.  When
+    /// applied to a return type, it means the value is returned indirectly via
+    /// an implicit sret parameter stored in the argument struct.
     InAlloca,
     KindFirst = Direct,
     KindLast = InAlloca





More information about the cfe-commits mailing list