aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-05-14 20:57:28 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-05-14 20:57:28 +0000
commitffb0081d0c0509eb4884143381cb3e5a5f6947b4 (patch)
treef1f34669245b7819954700f42e7a112576aac5ec
parent2f7c39246a968b921a6d95c7f8037fb3429e9501 (diff)
updated comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71790 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaDeclAttr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp
index 7a6a537547..c253b40bfe 100644
--- a/lib/Sema/SemaDeclAttr.cpp
+++ b/lib/Sema/SemaDeclAttr.cpp
@@ -725,7 +725,6 @@ static void HandleSentinelAttr(Decl *d, const AttributeList &Attr, Sema &S) {
// 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 @@ static void HandleSentinelAttr(Decl *d, const AttributeList &Attr, Sema &S) {
}
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));