[PATCH] D21453: Add support for attribute "overallocated"

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 17 18:32:43 PDT 2016


ahatanak updated this revision to Diff 61145.
ahatanak added a comment.

Fix a bug in tryEvaluateBuiltinObjectSize. If the pointer passed to __builtin_object_size doesn't point to an array, it should be able to compute the exact size of the subobject the pointer points to. Therefore, it should be able to tell the last call to __builtin_object_size in test/CodeGen/object-size.c should return 128.


http://reviews.llvm.org/D21453

Files:
  include/clang/Basic/Attr.td
  include/clang/Basic/AttrDocs.td
  lib/AST/ExprConstant.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/CodeGen/object-size.c
  test/CodeGen/object-size.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21453.61145.patch
Type: text/x-patch
Size: 6955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160618/3804499b/attachment-0001.bin>


More information about the cfe-commits mailing list