search for: return_arg_2

Displaying 1 result from an estimated 1 matches for "return_arg_2".

Did you mean: return_arg_1
2018 May 10
0
suboptimal type isomorphy handling involving opaque structs
...al function signatures to have different signatures in the resulting bitcode: =========================== $ cat demo-struct1.c struct foo { int x; }; struct bar { int x; }; struct foo *return_arg_1(struct foo *a, struct bar *b) { return a; } $ cat demo-struct2.c struct foo; struct bar; struct foo *return_arg_2(struct foo *a, struct bar *b) { return a; } $ ~/git/foreign/llvm-build/bin/clang -c -emit-llvm demo-struct1.c && ~/git/foreign/llvm-build/bin/clang -c -emit-llvm demo-struct2.c && ~/git/foreign/llvm-build/bin/llvm-link demo-struct1.bc demo-struct2.bc -o demo-struct-linked.bc &&a...