[cfe-commits] r53928 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp

Daniel Dunbar daniel at zuster.org
Tue Jul 22 12:44:19 PDT 2008


Author: ddunbar
Date: Tue Jul 22 14:44:18 2008
New Revision: 53928

URL: http://llvm.org/viewvc/llvm-project?rev=53928&view=rev
Log:
Add note to check what __alignof__ a function type should be.

Modified:
    cfe/trunk/lib/CodeGen/CGExprScalar.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=53928&r1=53927&r2=53928&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Tue Jul 22 14:44:18 2008
@@ -662,6 +662,7 @@
 
   // sizeof(void) and __alignof__(void) = 1 as a gcc extension. Also
   // for function types.
+  // FIXME: what is alignof a function type in gcc?
   if (TypeToSize->isVoidType() || TypeToSize->isFunctionType())
     return llvm::ConstantInt::get(llvm::APInt(ResultWidth, 1));
   





More information about the cfe-commits mailing list