[PATCH] [Sema] Make FunctionType's TSI use unadjusted argument types
Reid Kleckner
rnk at google.com
Tue May 28 17:25:38 PDT 2013
Hi rsmith,
This helps preserve the type-as-written in the AST, which we need for
MSVC mangling. In particular, we need to preserve the types of array
parameters in function pointer types.
The essence of this change is:
- QualType ArgTy = Param->getType();
+ QualType ArgTy = Param->getTypeSourceInfo()->getType();
... followed by the adjustment in ActOnFunctionDeclarator().
http://llvm-reviews.chandlerc.com/D883
Files:
include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/AST/Type.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaType.cpp
test/Index/print-type.c
test/Index/print-type.cpp
test/Sema/function-redecl.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D883.1.patch
Type: text/x-patch
Size: 10497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130528/c4d9c179/attachment.bin>
More information about the cfe-commits
mailing list