]> git.lizzy.rs Git - rust.git/commitdiff
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)
 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.

1  2 
src/librustc_trans/trans/base.rs

Simple merge