aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-06-23 17:50:10 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-06-23 17:50:10 +0000
commitc3ca14d13741889a9b924d0ca32e818f07a9834a (patch)
treef4541ad89f24be020fc26cac51f923cfcd919d43 /lib/Sema/SemaDecl.cpp
parent8785d115ebaf1a850f5e581e4acd2dbfb2b843cb (diff)
Remove multiple use of weak_import attribute on
same declaration. Templatize dropAttr for general use. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 487390bc29..4a000e9fc2 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -2046,7 +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.
- New->dropWeakImportAttr();
+ New->dropAttr<WeakImportAttr>();
}
// Merge the types.