[PATCH] D28788: [AST] AttributedType should derive type properties from the EquivalentType
David Majnemer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 16 20:25:29 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL292194: [AST] AttributedType should derive type properties from the EquivalentType (authored by majnemer).
Changed prior to commit:
https://reviews.llvm.org/D28788?vs=84609&id=84625#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28788
Files:
cfe/trunk/include/clang/AST/Type.h
cfe/trunk/test/CodeGenCXX/microsoft-abi-default-cc.cpp
Index: cfe/trunk/include/clang/AST/Type.h
===================================================================
--- cfe/trunk/include/clang/AST/Type.h
+++ cfe/trunk/include/clang/AST/Type.h
@@ -3832,13 +3832,13 @@
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;
}
Index: cfe/trunk/test/CodeGenCXX/microsoft-abi-default-cc.cpp
===================================================================
--- cfe/trunk/test/CodeGenCXX/microsoft-abi-default-cc.cpp
+++ cfe/trunk/test/CodeGenCXX/microsoft-abi-default-cc.cpp
@@ -45,3 +45,12 @@
void static_qux() {}
// GCABI-LABEL: define void @_Z10static_quxv
// MSABI: define void @"\01?static_qux@@YAXXZ"
+
+namespace PR31656 {
+template <int I>
+void __cdecl callee(int args[I]);
+// GCABI-LABEL: declare void @_ZN7PR316566calleeILi1EEEvPi(
+// MSABI: declare void @"\01??$callee@$00 at PR31656@@YAXQAH at Z"(
+
+void caller() { callee<1>(0); }
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28788.84625.patch
Type: text/x-patch
Size: 1714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170117/090ae78b/attachment-0001.bin>
More information about the cfe-commits
mailing list