updated comments.
llvm-svn: 71790
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 7a6a537..c253b40 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -725,7 +725,6 @@
// will be issued by the caller.
;
} else if (const VarDecl *V = dyn_cast<VarDecl>(d)) {
- // FIXME: share code with case of BlockDecl.
QualType Ty = V->getType();
if (Ty->isBlockPointerType()) {
const BlockPointerType *BPT = Ty->getAsBlockPointerType();
@@ -739,12 +738,12 @@
}
else {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
- << Attr.getName() << 6 /*function, method or */;
+ << Attr.getName() << 6 /*function, method or block */;
return;
}
} else {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
- << Attr.getName() << 6 /*function, method or */;
+ << Attr.getName() << 6 /*function, method or block */;
return;
}
d->addAttr(::new (S.Context) SentinelAttr(sentinel, nullPos));