summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-12-01 23:38:06 +0000
committerHal Finkel <hfinkel@anl.gov>2014-12-01 23:38:06 +0000
commitafcd8dbbcfca4cb0024cd116828ec0a803678f9d (patch)
treefba5d76fa383e25f05c754dc40f0a03c5b373bb2 /clang/lib/Frontend/FrontendActions.cpp
parent8e302cdb453e55e09b7ca0c5163286916c32df43 (diff)
downloadbcm5719-llvm-afcd8dbbcfca4cb0024cd116828ec0a803678f9d.tar.gz
bcm5719-llvm-afcd8dbbcfca4cb0024cd116828ec0a803678f9d.zip
Simplify pointer comparisons involving memory allocation functions
System memory allocation functions, which are identified at the IR level by the noalias attribute on the return value, must return a pointer into a memory region disjoint from any other memory accessible to the caller. We can use this property to simplify pointer comparisons between allocated memory and local stack addresses and the addresses of global variables. Neither the stack nor global variables can overlap with the region used by the memory allocator. Fixes PR21556. llvm-svn: 223093
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud