]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #23322 - dotdash:jemalloc_attrs, r=brson
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 13 Mar 2015 12:41:51 +0000 (18:11 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Fri, 13 Mar 2015 12:41:51 +0000 (18:11 +0530)
commitd0f98fcc7fd9846c6925eb46f969febef99ae9c3
tree5a7ed287281219714e97fb0647ef6b7d02a9b45d
parent63cd9f9d8948ad9fe138c327f2298739a240daba
parent0942803f502d164883294e29238e3ac4822867ed
Rollup merge of #23322 - dotdash:jemalloc_attrs, r=brson

 When this attribute is applied to a function, its return value gets the
noalias attribute, which is how you tell LLVM that the function returns
a \"new\" pointer that doesn't alias anything accessible to the caller,
i.e. it acts like a memory allocator.

Plain malloc doesn't need this attribute because LLVM already knows
about malloc and adds the attribute itself.
src/librustc_trans/trans/base.rs