]> granicus.if.org Git - clang/commit
When deferring the emission of declarations with initializers in C++, remember
authorJohn McCall <rjmccall@apple.com>
Thu, 15 Jul 2010 23:40:35 +0000 (23:40 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 15 Jul 2010 23:40:35 +0000 (23:40 +0000)
commitbf40cb518312dde1c07e44fcae59bc4eec65589c
tree8586ebdad129f9ce6f455050c230fda0570edb08
parent15a3d7df1ad667c6c09e34def34d546124c9efac
When deferring the emission of declarations with initializers in C++, remember
the order they appeared in the translation unit.  If they get emitted, put them
in their proper order.  Fixes rdar://problem/7458115

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108477 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CGDeclCXX.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGenCXX/global-init.cpp