[PATCH] D52879: Derive builtin return type from its definition
Bruno Ricci via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 28 05:10:05 PST 2018
riccibruno added a comment.
And moreover I believe this change is subtly incorrect for the following reason:
The type that is passed into the constructor of the call expression is the type
of the call expression, and not the return type.
The difference between the return type and the type of the call expression is that
1.) References are dropped, and
2.) For C++: The cv-qualifiers of non class pr-values are dropped,
3.) For C: The cv-qualifiers are dropped.
( as can be seen in `FunctionType::getCallResultType` )
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D52879/new/
https://reviews.llvm.org/D52879
More information about the cfe-commits
mailing list