summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-10-23 20:07:52 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-10-23 20:07:52 +0000
commit7d33cd3a2f86f2374fcacb2c31f91ef7865f72f6 (patch)
treef44db2f7dc51c4043ca5b70aa0d63cefffc7580a /clang/lib/Sema/SemaDeclAttr.cpp
parente0916cd408ee5aced7d8b295fe6c4110dbbe85b6 (diff)
downloadbcm5719-llvm-7d33cd3a2f86f2374fcacb2c31f91ef7865f72f6.tar.gz
bcm5719-llvm-7d33cd3a2f86f2374fcacb2c31f91ef7865f72f6.zip
Fix grammar for C++11 alignment specifiers, and add a few FIXMEs.
llvm-svn: 142760
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index d801664ad63..d43e1f1a9ba 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -2544,6 +2544,10 @@ static void handleAlignedAttr(Sema &S, Decl *D, const AttributeList &Attr) {
}
void Sema::AddAlignedAttr(SourceRange AttrRange, Decl *D, Expr *E) {
+ // FIXME: Handle pack-expansions here.
+ if (DiagnoseUnexpandedParameterPack(E))
+ return;
+
if (E->isTypeDependent() || E->isValueDependent()) {
// Save dependent expressions in the AST to be instantiated.
D->addAttr(::new (Context) AlignedAttr(AttrRange, Context, true, E));
OpenPOWER on IntegriCloud