PCH serialization issues (PR 34728)

I'm running into trouble when serializing a template function
declaration to PCH and subsequently reading it back:
https://bugs.llvm.org/show_bug.cgi?id=34728

Small example:

  header.h

Hi Steve,

Yup, sent :slight_smile: https://reviews.llvm.org/D38320