Remove abuse of hasTrivial*, and fix miscompile wherein global arrays with
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 12 Nov 2012 21:38:00 +0000 (21:38 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 12 Nov 2012 21:38:00 +0000 (21:38 +0000)
commita0e5e54e8df318f1f2fd5c2a1811ec67a08eb484
tree52dc8c58c37aae21f328449544bbe86267bada6e
parent2b2b38d336b209cd43f7326f7a9f0d168fc21c27
Remove abuse of hasTrivial*, and fix miscompile wherein global arrays with
internal linkage, no uses, trivial construction, and nontrivial destruction
were not emitted.

llvm-svn: 167756
clang/lib/AST/ASTContext.cpp
clang/test/CodeGenCXX/global-array-destruction.cpp
clang/test/CodeGenCXX/trivial-constructor-init.cpp