mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-23 04:52:54 +02:00
b71ad70b4e
the readnone. Since MallocInst is scheduled for deletion it doesn't seem worth doing anything more subtle, such as having mayWriteToMemory return true for MallocInst. llvm-svn: 71077
8 lines
169 B
LLVM
8 lines
169 B
LLVM
; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | not grep read
|
|
; PR3754
|
|
|
|
define i8* @m(i32 %size) {
|
|
%tmp = malloc i8, i32 %size ; <i8*> [#uses=1]
|
|
ret i8* %tmp
|
|
}
|