Displaying 1 result from an estimated 1 matches for "_z4dump5point".
2012 Jan 07
1
[LLVMdev] Meaning of byval?
...%struct.point* %agg.tmp to i8*, !dbg !39 ; [#uses=1 type=i8*] [debug line = 18:13]
%4 = bitcast %struct.point* %p to i8*, !dbg !39 ; [#uses=1 type=i8*] [debug line = 18:13]
call void @llvm.memcpy.p0i8.p0i8.i32(i8* %3, i8* %4, i32 8, i32 4, i1 false), !dbg !39 ; [debug line = 18:13]
call void @_Z4dump5point(%struct.point* byval align 4 %p), !dbg !39 ; [debug line = 18:13]
It looks like a copy is made in the caller, but the copy
isn't used - instead the original is passed to the function.
So this will not work properly unless the called function
creates a copy. There is no explicit code created fo...