summaryrefslogtreecommitdiffstats
path: root/include/clang/AST/Type.h
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2017-01-31 22:31:45 +0000
committerHans Wennborg <hans@hanshq.net>2017-01-31 22:31:45 +0000
commit5114b5eb4c7d38c5a622948fd977e292a635236c (patch)
tree7e86902efbed9438538b98e814c3f4576898ee1b /include/clang/AST/Type.h
parent1b8468f0151f4ed390f7b8e139fc502425d086f7 (diff)
Merging r292194:
------------------------------------------------------------------------ r292194 | majnemer | 2017-01-16 20:14:25 -0800 (Mon, 16 Jan 2017) | 8 lines [AST] AttributedType should derive type properties from the EquivalentType Using the canonical type instead of the equivalent type can result in insufficient template instantiations. This fixes PR31656. Differential Revision: https://reviews.llvm.org/D28788 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_40@293702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/Type.h')
-rw-r--r--include/clang/AST/Type.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h
index 744a408e57..a50e054f9b 100644
--- a/include/clang/AST/Type.h
+++ b/include/clang/AST/Type.h
@@ -3827,13 +3827,13 @@ private:
friend class ASTContext; // creates these
- AttributedType(QualType canon, Kind attrKind,
- QualType modified, QualType equivalent)
- : Type(Attributed, canon, canon->isDependentType(),
- canon->isInstantiationDependentType(),
- canon->isVariablyModifiedType(),
- canon->containsUnexpandedParameterPack()),
- ModifiedType(modified), EquivalentType(equivalent) {
+ AttributedType(QualType canon, Kind attrKind, QualType modified,
+ QualType equivalent)
+ : Type(Attributed, canon, equivalent->isDependentType(),
+ equivalent->isInstantiationDependentType(),
+ equivalent->isVariablyModifiedType(),
+ equivalent->containsUnexpandedParameterPack()),
+ ModifiedType(modified), EquivalentType(equivalent) {
AttributedTypeBits.AttrKind = attrKind;
}