[PATCH] D50631: [AST] Stuff more data into FunctionTypeBitfields
Bruno Ricci via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 13 04:01:42 PDT 2018
riccibruno created this revision.
riccibruno added reviewers: erichkeane, rjmccall.
riccibruno added a project: clang.
Herald added a subscriber: cfe-commits.
Since FunctionTypeBitfields is already > 32 bits wide we might
as well stuff the remaining bits from FunctionProtoType into it.
The patch is very mechanical, but changes the maximum number of
parameters from 2^15-1 to 2^12-1 to fit into FunctionTypeBitfields.
This seems still large enough, and in any case according to the
annex B of the C++ standard we only need to be able to accept
256 parameters.
Also the member `unsigned RefQualifier : 2;` is moved in
FunctionTypeBitfields. This is intentional and done to avoid
the unsigned boundary.
Repository:
rC Clang
https://reviews.llvm.org/D50631
Files:
include/clang/AST/Type.h
lib/AST/Type.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50631.160324.patch
Type: text/x-patch
Size: 9990 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180813/abcb2986/attachment-0001.bin>
More information about the cfe-commits
mailing list