diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-06-23 16:18:44 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-06-23 16:18:44 +0000 |
commit | 8785d115ebaf1a850f5e581e4acd2dbfb2b843cb (patch) | |
tree | 03dec2ad03bad2e6f2c37628185fe1f19558aebd /lib/Sema/SemaDecl.cpp | |
parent | 89bb6146a8eca177b63fbcbc03c68f9012666023 (diff) |
Remove weak_import attribute on new declaration.
// rdar://9538608
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133721 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index daf9f034ac..487390bc29 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -2046,9 +2046,7 @@ void Sema::MergeVarDecl(VarDecl *New, LookupResult &Previous) { Diag(New->getLocation(), diag::warn_weak_import) << New->getDeclName(); Diag(Old->getLocation(), diag::note_previous_definition); // Remove weak_import attribute on new declaration. - // I am just dropping all attributes in curernt decl. We have - // already issued a warning, so we are OK. - New->dropAttrs(); + New->dropWeakImportAttr(); } // Merge the types. |