diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-08-06 16:20:37 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-08-06 16:20:37 +0000 |
commit | 15acfb9f501e047fb3791d8e3a2f2582541d3991 (patch) | |
tree | 6c83b49bf07fcef0a109b51e5e9370818e75ca40 /llvm/lib/Target/TargetLoweringObjectFile.cpp | |
parent | a7e2662770b9ccfc294b961e8b79a189d5224cb0 (diff) | |
download | llvm-15acfb9f501e047fb3791d8e3a2f2582541d3991.zip llvm-15acfb9f501e047fb3791d8e3a2f2582541d3991.tar.gz llvm-15acfb9f501e047fb3791d8e3a2f2582541d3991.tar.bz2 |
When we encounter a dependent type that was parsed before we know that
we were going to enter into the scope of a class template or class
template partial specialization, rebuild that type so that it can
refer to members of the current instantiation, as in code like
template<typename T>
struct X {
typedef T* pointer;
pointer data();
};
template<typename T>
typename X<T>::pointer X<T>::data() { ... }
Without rebuilding the return type of this out-of-line definition, the
canonical return type of the out-of-line definition (a TypenameType)
will not match the canonical return type of the declaration (the
canonical type of T*).
llvm-svn: 78316
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions