[cfe-commits] r67214 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Mike Stump
mrs at apple.com
Wed Mar 18 10:39:32 PDT 2009
Author: mrs
Date: Wed Mar 18 12:39:31 2009
New Revision: 67214
URL: http://llvm.org/viewvc/llvm-project?rev=67214&view=rev
Log:
Be sure to not add weak import, if we are ignoring it.
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=67214&r1=67213&r2=67214&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Wed Mar 18 12:39:31 2009
@@ -763,6 +763,7 @@
isDef = FD->getBody();
} else if (isa<ObjCPropertyDecl>(D)) {
// We ignore weak import on properties
+ return;
} else {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
<< "weak_import" << 2 /*variable and function*/;
More information about the cfe-commits
mailing list