]> granicus.if.org Git - clang/commit
Fix a crash when emitting dbeug info for forward-declared scoped enums.
authorAdrian Prantl <aprantl@apple.com>
Sat, 6 Feb 2016 01:59:09 +0000 (01:59 +0000)
committerAdrian Prantl <aprantl@apple.com>
Sat, 6 Feb 2016 01:59:09 +0000 (01:59 +0000)
commit6fbed68720badec2bcafeb98ecb554c681ae75ad
tree9ff8b5bbe5ad9174740bbb557057da3131b66da3
parent208c623c2b99387bc4be8ef86e78b9ec1572d30e
Fix a crash when emitting dbeug info for forward-declared scoped enums.
It is possible for enums to be created as part of their own
declcontext. We need to cache a placeholder to avoid the type being
created twice before hitting the cache.

<rdar://problem/24493203>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259975 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-info-scoped-class.cpp [new file with mode: 0644]