]> granicus.if.org Git - clang/commit
Remove all "used" static functions *after* we have performed all of
authorDouglas Gregor <dgregor@apple.com>
Fri, 9 Apr 2010 17:41:13 +0000 (17:41 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 9 Apr 2010 17:41:13 +0000 (17:41 +0000)
commit47268a3f2843a8d64f3a6fef1e9a9dde1feb4a8c
tree27de83043d82a323760b13ecabecf18373b0f948
parent6cd3b9fb8a29bb70fff01719bdde238723d67c10
Remove all "used" static functions *after* we have performed all of
the implicit template instantiations we need to perform. Otherwise, we
end up erroneously diagnosing static functions as used if they were
only used within an implicit template instantiation. Fixes a bunch of
spurious failures when building Clang with Clang.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100872 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.cpp
test/SemaCXX/unused-functions.cpp [new file with mode: 0644]