diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2016-04-13 12:25:25 +0000 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2016-04-13 12:25:25 +0000 |
commit | 644b8c1a5d3773724491257fd80c24b13eb22e2c (patch) | |
tree | 99fdf93a253675b3844c32dbceb75ff33bd5a80e /clang/test/CodeGen/sret.c | |
parent | 9fb77fcfef393a3a481d2fc534b76ee22531798f (diff) | |
download | bcm5719-llvm-644b8c1a5d3773724491257fd80c24b13eb22e2c.tar.gz bcm5719-llvm-644b8c1a5d3773724491257fd80c24b13eb22e2c.zip |
Calculate __builtin_object_size when pointer depends on a condition
This patch fixes calculating of builtin_object_size if it depends on a
condition. Before this patch compiler did not know how to calculate the
object size when it finds a condition that cannot be eliminated.
This patch enables calculating of builtin_object_size even in case when
condition cannot be eliminated by choosing minimum or maximum value as a
result from condition. Choosing minimum or maximum value from condition
is based on the second argument of __builtin_object_size function.
Patch by Strahinja Petrovic.
Differential Revision: http://reviews.llvm.org/D18438
llvm-svn: 266193
Diffstat (limited to 'clang/test/CodeGen/sret.c')
0 files changed, 0 insertions, 0 deletions