]> granicus.if.org Git - clang/commit
When checking for weak vtables, check whether the actual definition of
authorDouglas Gregor <dgregor@apple.com>
Fri, 23 Sep 2011 19:04:03 +0000 (19:04 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 23 Sep 2011 19:04:03 +0000 (19:04 +0000)
commita120d01c66010db47332b7ca67b737fda6c2c264
treef26205c7740ef072554d3267b754c99af2ac8c1a
parente3f834950801f1334f1b3f3f7e9a34062905fe1d
When checking for weak vtables, check whether the actual definition of
the key function is inline, rather than the original
declaration. Perhaps FunctionDecl::isInlined() is poorly named. Fixes
<rdar://problem/9979458>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140400 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/warn-weak-vtables.cpp