summaryrefslogtreecommitdiffstats
path: root/clang
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
commit3133a2f08c7310bf5cddb781c92b80a4644e6e25 (patch)
tree32a129e3e5f5e9e3afb1df787b0323e71f035508 /clang
parent5d0c051e6611726b907d289b34eaa463fee3d72a (diff)
downloadbcm5719-llvm-3133a2f08c7310bf5cddb781c92b80a4644e6e25.tar.gz
bcm5719-llvm-3133a2f08c7310bf5cddb781c92b80a4644e6e25.zip
updated comments.
llvm-svn: 71790
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 7a6a537547e..c253b40bfee 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/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));
OpenPOWER on IntegriCloud