]> granicus.if.org Git - clang/commit
Emission of global variable initialializer was broken in rare
authorDaniel Dunbar <daniel@zuster.org>
Thu, 19 Feb 2009 05:36:41 +0000 (05:36 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 19 Feb 2009 05:36:41 +0000 (05:36 +0000)
commit232350d4faf46ec38d5ff60e11505f9c4fa9535b
tree8a92be624cbf28839c606ad6c67c499a1ed8548a
parentd3794b8cc33ef6ae9853b3921d089c6ee278eec1
Emission of global variable initialializer was broken in rare
situation where a tentative decl was emitted *after* the actual
initialization. This occurs in some rare situations with static decls.
 - PR3613.

 - I'm not particularly happy with this fix, but I don't see a simpler
   or more elegant solution yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65018 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/PR3613-static-decl.c [new file with mode: 0644]