Displaying 1 result from an estimated 1 matches for "ptr_i8".
Did you mean:
ptr_8
2009 Dec 01
1
[LLVMdev] Troubles with llvm.gcroot and exception handling
...error
related to exception handling:
22:40|melis at juggle2:~/projects/llvm_gc> cat root.ll
%obj = type { i8*, i8, i8 }
declare void @llvm.gcroot(i8**, i8*) nounwind
declare i8* @malloc(i32) nounwind
define i32 @main() nounwind gc "shadow-stack" {
entry:
%ptr = alloca %obj*
%ptr_i8 = bitcast %obj** %ptr to i8**
call void @llvm.gcroot(i8** %ptr_i8, i8* null)
%t = call i8* @malloc(i32 6)
%myobj = bitcast i8* %t to %obj*
store %obj* %myobj, %obj** %ptr
ret i32 0
}
22:40|melis at juggle2:~/projects/llvm_gc> llc root.ll
22:40|melis at juggle2:~/projects/ll...