PR50294: Fix a performance regression from 2c9dbcd.
authorRichard Smith <richard@metafoo.co.uk>
Thu, 2 Sep 2021 00:57:48 +0000 (17:57 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Thu, 2 Sep 2021 01:00:07 +0000 (18:00 -0700)
commit6eda66b0a9f793c65852aa94430ae9bd891bcf63
treea74f3d048c6a8613b3723eec7fad9c7de9260118
parent4d5220faf9a646565f5a551ee403672b1dd06b88
PR50294: Fix a performance regression from 2c9dbcd.

Per the contract of ReadLateParsedTemplates, we should not be returning
the same results multiple times. No functionality change intended, other
than to runtime.

Thanks to Luboš Luňák for identifying the cause of the regression!
clang/lib/Serialization/ASTReader.cpp