diff options
| author | Reid Kleckner <reid@kleckner.net> | 2013-09-10 01:04:45 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2013-09-10 01:04:45 +0000 |
| commit | 35bc0055408131d34543c6b4a137d021b26f2d6a (patch) | |
| tree | ece16ed5c4801d9afab15e8abf1744abee8ff02e /lib/CodeGen/CodeGenFunction.cpp | |
| parent | c72b4b396a9b87cf9cdb9958308d82fd32bdb846 (diff) | |
| download | clang-35bc0055408131d34543c6b4a137d021b26f2d6a.tar.gz clang-35bc0055408131d34543c6b4a137d021b26f2d6a.tar.bz2 clang-35bc0055408131d34543c6b4a137d021b26f2d6a.tar.xz | |
Ignore calling conventions when checking function template specializations
Summary:
Calling conventions are inherited during decl merging. Before this
change, deduction would fail due to a type mismatch between the template
and the specialization. This change adjusts the CCs to match before
deduction, and lets the decl merging logic diagnose mismatch or inherit
the CC from the template.
This allows specializations of static member function templates in the
Microsoft C++ ABI.
Reviewers: rsmith
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1570
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
