aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2025-01-29 17:23:36 -0300
committerGitHub <noreply@github.com>2025-01-29 17:23:36 -0300
commit07a0e2be86f33beb6d519a3d466b95c2257e93cb (patch)
tree74c89a699408837708fe148d9a11e6465c58c620 /clang/lib/CodeGen/CodeGenModule.cpp
parentbcf306e0ebb5fe4f4bbfa1e87d4a34770cdfcb98 (diff)
downloadllvm-07a0e2be86f33beb6d519a3d466b95c2257e93cb.zip
llvm-07a0e2be86f33beb6d519a3d466b95c2257e93cb.tar.gz
llvm-07a0e2be86f33beb6d519a3d466b95c2257e93cb.tar.bz2
[clang] Track function template instantiation from definition (#112241)
This fixes instantiation of definition for friend function templates, when the declaration found and the one containing the definition have different template contexts. In these cases, the the function declaration corresponding to the definition is not available; it may not even be instantiated at all. So this patch adds a bit which tracks which function template declaration was instantiated from the member template. It's used to find which primary template serves as a context for the purpose of obtainining the template arguments needed to instantiate the definition. Fixes #55509 Relanding patch, with no changes, after it was reverted due to revert of commit this patch depended on.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions