int* f() { int* is = (int*)malloc(sizeof(int)); return is; } define i32* @f() { entry: %is = alloca i32* ; [#uses=2] %call = call i8* @malloc( i32 4 ) ; [#uses=1] %conv = bitcast i8* %call to i32* ; [#uses=1] store i32* %conv, i32** %is %tmp = load i32** %is ; [#uses=1] ret i32* %tmp }