[cfe-commits] r71790 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Fariborz Jahanian
fjahanian at apple.com
Thu May 14 13:57:35 PDT 2009
Author: fjahanian
Date: Thu May 14 15:57:28 2009
New Revision: 71790
URL: http://llvm.org/viewvc/llvm-project?rev=71790&view=rev
Log:
updated comments.
Modified:
cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=71790&r1=71789&r2=71790&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Thu May 14 15:57:28 2009
@@ -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));
More information about the cfe-commits
mailing list