From 8ee6a63ba1cc2455f4b3e9111091908d50796818 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 22 Jul 2008 19:44:18 +0000 Subject: 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 --- lib/CodeGen/CGExprScalar.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/CodeGen/CGExprScalar.cpp') 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)); -- cgit v1.2.3