From: Daniel Dunbar Date: Tue, 22 Jul 2008 19:44:18 +0000 (+0000) Subject: Add note to check what __alignof__ a function type should be. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ee6a63ba1cc2455f4b3e9111091908d50796818;p=clang Add note to check what __alignof__ a function type should be. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53928 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 092513670e..f3ac6a61f4 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -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));