Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: not respecting function return type #199

Open
Ptival opened this issue Mar 30, 2022 · 0 comments
Open

Bug: not respecting function return type #199

Ptival opened this issue Mar 30, 2022 · 0 comments

Comments

@Ptival
Copy link
Contributor

Ptival commented Mar 30, 2022

e.g. in x86_64.ubuntu20.dnsmasq.clang.O0.nopie.nostrip/x86_64.ubuntu20.dnsmasq.clang.O0.nopie.nostrip.elf:

The function is defined as:

define i64 @cache_get_name({ <52 x i8>, i32, { }* }* %arg0) {

Yet, in the final block we infer a pointer type for the return value:

block_0_403d83:
  ; r22
  %t29 = phi { }* [ %t11, %block_0_403d3d ], [ %t25, %block_0_403d61 ], [ %t28, %block_0_403d72 ]
  ret { }* %t29

These are incompatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant