Displaying 2 results from an estimated 2 matches for "buf2r1".
2013 Mar 11
2
[LLVMdev] How to detect all free() calls
Thanks. isFreeCall() works well but for
%call2 = call i32 bitcast (i32 (...)* @free to i32 (i8*)*)(i8* %call1) nounwind, !dbg !16
So I tried to figure out when the above instruction occurred.
When <stdlib.h> is included, free(buf2R1); turn into call void @free(i8* %call1) nounwind, !dbg !16
when I forget to include <stdlib.h>, free(buf2R1); turn into %call2 = call i32 bitcast (i32 (...)* @free to i32 (i8*)*)(i8* %call1) nounwind, !dbg !16
I don't understand why this is happen. Could you explain it for me?
-------...
2013 Mar 11
0
[LLVMdev] How to detect all free() calls
...Jane <270611649 at qq.com> wrote:
> Thanks. isFreeCall() works well but for
> %call2 = call i32 bitcast (i32 (...)* @free to i32 (i8*)*)(i8* %call1)
> nounwind, !dbg !16
> So I tried to figure out when the above instruction occurred.
> When <stdlib.h> is included, free(buf2R1); turn into call void @free(i8*
> %call1) nounwind, !dbg !16
> when I forget to include <stdlib.h>, free(buf2R1); turn into %call2 = call
> i32 bitcast (i32 (...)* @free to i32 (i8*)*)(i8* %call1) nounwind, !dbg !16
> I don't understand why this is happen. Could you explain...