aboutsummaryrefslogtreecommitdiff
path: root/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
commit8ee6a63ba1cc2455f4b3e9111091908d50796818 (patch)
tree41e51b145418f8257912ff49dc77bc6c8e9d3dab /lib/CodeGen/CGExprScalar.cpp
parent8b7c9fb2efc4c72c24989c211cf8e877c2a2b3a1 (diff)
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
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp1
1 files changed, 1 insertions, 0 deletions
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));