Fix a bug when emitting debug info for partially constant global variables.
authorAdrian Prantl <aprantl@apple.com>
Thu, 23 Mar 2017 23:35:00 +0000 (23:35 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 23 Mar 2017 23:35:00 +0000 (23:35 +0000)
commitf0ffc5233d7042aa426e2305a64e6a09ba4e6c8a
tree1cbbe72be57c6287661752ec8a25c4ce64fe796c
parent11873949e0c418c1e72730e5a41dd32e7cf04b80
Fix a bug when emitting debug info for partially constant global variables.

While fixing a malformed testcase, I discovered that the code
exercised by it was wrong, too.

llvm-svn: 298664
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/test/DebugInfo/X86/split-global.ll