diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2015-09-04 21:28:13 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2015-09-04 21:28:13 +0000 |
commit | 3a03fabdd06dd92b7e6e0226c3109b0a49d36b16 (patch) | |
tree | 01c3d7ae604773007af34854618318f65a44ffb0 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c6bbb8b69a111a47d818c1c1b1bc0f379484d84c (diff) | |
download | bcm5719-llvm-3a03fabdd06dd92b7e6e0226c3109b0a49d36b16.tar.gz bcm5719-llvm-3a03fabdd06dd92b7e6e0226c3109b0a49d36b16.zip |
Increase accuracy of __builtin_object_size.
Improvements:
- For all types, we would give up in a case such as:
__builtin_object_size((char*)&foo, N);
even if we could provide an answer to
__builtin_object_size(&foo, N);
We now provide the same answer for both of the above examples in all
cases.
- For type=1|3, we now support subobjects with unknown bases, as long
as the designator is valid.
Thanks to Richard Smith for the review + design planning.
Review: http://reviews.llvm.org/D12169
llvm-svn: 246877
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions