summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-07-22 19:44:18 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-07-22 19:44:18 +0000
commita2fbefc1593b69b5a4cfc525da899cff242ca2cd (patch)
tree59e47014e0a5051030a888a9954496b3ab33dcc3 /clang/lib/CodeGen/CGExprScalar.cpp
parent03846701410659500c335ce4732d27ae19de693e (diff)
Add note to check what __alignof__ a function type should be.
llvm-svn: 53928
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 092513670ea2..f3ac6a61f468 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/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));