private:
QualType getCanonicalTypeInternal() const { return CanonicalType; }
friend class QualType;
+ friend class TypedefType;
public:
void dump() const;
virtual void getAsStringInternal(std::string &InnerString) const = 0;
//===----------------------------------------------------------------------===//
void TypedefType::EmitImpl(Serializer& S) const {
- S.Emit(QualType((Type*)this,0)/*.getCanonicalType()*/);
+ S.Emit(getCanonicalTypeInternal());
S.EmitPtr(Decl);
}
std::vector<Type*>& Types =
const_cast<std::vector<Type*>&>(Context.getTypes());
- TypedefType* T = new TypedefType(Type::TypeName, NULL,QualType::ReadVal(D));
+ TypedefType* T = new TypedefType(Type::TypeName, NULL, QualType::ReadVal(D));
Types.push_back(T);
D.ReadPtr(T->Decl); // May be backpatched.