]> granicus.if.org Git - clang/commit
Remove an unnecessary workaround introduced in r259975. (NFC)
authorAdrian Prantl <aprantl@apple.com>
Tue, 23 Feb 2016 17:13:47 +0000 (17:13 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 23 Feb 2016 17:13:47 +0000 (17:13 +0000)
commitc473d6dc331e6e199803d742e3bdd28035191fd0
tree119bb643249e2d179fc6a2d4f3479e6daaef4369
parent034956ed4be3111f498ea40294f8fbdd5d66a7b2
Remove an unnecessary workaround introduced in r259975. (NFC)

Now that LLVM r259973 allows replacing a temporary type with another
temporary we can rely on the original implementation.

It is possible for enums to be created as part of
their own declcontext. In this case a FwdDecl will be created
twice. This doesn't cause a problem because both FwdDecls are
entered into the ReplaceMap: finalize() will replace the first
FwdDecl with the second and then replace the second with
complete type.

Thanks to echristo for pointing this out.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261657 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp