aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <george.burgess.iv@gmail.com>2015-08-19 02:19:07 +0000
committerGeorge Burgess IV <george.burgess.iv@gmail.com>2015-08-19 02:19:07 +0000
commitbdb5b2687a41adbc408451e1adca1bdf4d3104a0 (patch)
treea845215e27d394a14f0722a45044d0bfcfe53462 /clang/lib/CodeGen/CodeGenModule.cpp
parent0efe9f60bb7ca3b3cbfe2f8046070ebd65753068 (diff)
downloadllvm-bdb5b2687a41adbc408451e1adca1bdf4d3104a0.zip
llvm-bdb5b2687a41adbc408451e1adca1bdf4d3104a0.tar.gz
llvm-bdb5b2687a41adbc408451e1adca1bdf4d3104a0.tar.bz2
Make __builtin_object_size always answer correctly
__builtin_object_size would return incorrect answers for many uses where type=3. This fixes the inaccuracy by making us emit 0 instead of LLVM's objectsize intrinsic. Additionally, there are many cases where we would emit suboptimal (but correct) answers, such as when arrays are involved. This patch fixes some of these cases (please see new tests in test/CodeGen/object-size.c for specifics on which cases are improved) Resubmit of r245323 with PR24493 fixed. Patch mostly by Richard Smith. Differential Revision: http://reviews.llvm.org/D12000 This fixes PR15212. llvm-svn: 245403
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions