mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
cfd0ebea27
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71077 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|