Skip to content

Commit c02e490

Browse files
committed
fix unit test with last LLVM on 64-bit platforms
1 parent 2c46393 commit c02e490

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/alive-tv/memory/malloc-calloc.srctgt.ll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
target triple = "x86-unknown-linux-gnu"
2+
target datalayout = "e-p:32:32"
3+
14
define i8* @src(i32 %size) {
25
%call1 = call i8* @malloc(i32 %size)
36
ret i8* %call1
47
}
58

69
define i8* @tgt(i32 %size) {
7-
; %calloc = call i8* @malloc(i32 %size)
810
%calloc = call i8* @calloc(i32 1, i32 %size)
911
ret i8* %calloc
1012
}

0 commit comments

Comments
 (0)