]> granicus.if.org Git - clang/commit
static local variables with destructors don't require a global destructor
authorJohn McCall <rjmccall@apple.com>
Sat, 18 Sep 2010 05:25:11 +0000 (05:25 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 18 Sep 2010 05:25:11 +0000 (05:25 +0000)
commitae79222014a7a90a2c2d4a04e67deac0012a0461
tree582630fe77479738bfd35aff12a2abcb2f7ddcc5
parent8abdbd8118e37e759d1ce3f5814ee0a24b1589e8
static local variables with destructors don't require a global destructor
unless we're on a platform without __cxa_atexit (or use thereof has been
disabled).  This patch actually just disables the check completely for
static locals, but I've filed http://llvm.org/bugs/show_bug.cgi?id=8176 to
track the platform-specific fix.

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