]> granicus.if.org Git - clang/commitdiff
Add note to check what __alignof__ a function type should be.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 22 Jul 2008 19:44:18 +0000 (19:44 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 22 Jul 2008 19:44:18 +0000 (19:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53928 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprScalar.cpp

index 092513670ea286ecdcc39a68781f6a4a0d28ffbc..f3ac6a61f46869403fbb8e3a6297a55408f84fdd 100644 (file)
@@ -662,6 +662,7 @@ Value *ScalarExprEmitter::EmitSizeAlignOf(QualType TypeToSize,
 
   // 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));