]> granicus.if.org Git - clang/commit
[Sema] Use the right FoldingSet.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 12 Jun 2017 17:44:30 +0000 (17:44 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 12 Jun 2017 17:44:30 +0000 (17:44 +0000)
commite2037d49072da1bc0d95ec682080baf7df989d8c
tree2cc12abd8fdcf6f27d3b4e475f723070ffedc921
parentc90ce64fa88a12cd3aa265744398460f63cc6852
[Sema] Use the right FoldingSet.

We were doing FindNodeOrInsertPos on SubstTemplateTypeParmPackTypes, so
we should presumably be inserting into SubstTemplateTypeParmPackTypes.

Looks like the FoldingSet API can be tweaked a bit so that we can catch
things like this at compile-time. I'll look into that shortly.

I'm unsure of how to test this; suggestions welcome.

Thanks to Vladimir Voskresensky for bringing this up!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305207 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp