[PATCH] D12000: Bugfix - Clang handles __builtin_object_size in wrong way

George Burgess IV via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 12 17:04:07 PDT 2015


george.burgess.iv created this revision.
george.burgess.iv added a subscriber: cfe-commits.

Attached is a fix for https://llvm.org/bugs/show_bug.cgi?id=15212 .

Summary: Tighten up some of the results for __builtin_object_size(ptr, type) when given type == 1 or type == 3 + fixed a bug where we would report incorrect results for type == 3.

> 90% of the patch is courtesy of Richard Smith. :)


http://reviews.llvm.org/D12000

Files:
  lib/AST/ExprConstant.cpp
  test/CodeGen/object-size.c
  test/Sema/const-eval.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12000.32001.patch
Type: text/x-patch
Size: 9755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150813/e7ce937f/attachment.bin>


More information about the cfe-commits mailing list