Fix C++ PCH issue.

The canonical FunctionTemplateDecl contains the specializations but we cannot use getCanonicalDecl on Template because it may still be initializing.
Write and read it from PCH.
Fixes http://llvm.org/PR8134

llvm-svn: 113744
3 files changed
tree: 61ecf775a34d30d8809f81d5e08ff953ed5f8b8d
  1. clang/
  2. compiler-rt/
  3. libcxx/
  4. lldb/
  5. llvm/