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]: Unreachable when lowering typedef #450

Open
pgoodman opened this issue Nov 21, 2023 · 0 comments
Open

[Bug]: Unreachable when lowering typedef #450

pgoodman opened this issue Nov 21, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@pgoodman
Copy link
Member

VAST version

08c665f

LLVM version

17.0.4

Operating system

macOS

Description

Crash when trying to look up a typedef. Might be an out-of-order issue, where the codegen visitor comes across a forward declaration of a function, but then hops "down" to the definition, skipping over many as-of-yet unseen declarations. Then, it goes and codegens the function body, and comes across a case where it needs a typedef (typedef void (*curl_free_callback)(void *ptr);), but in jumping down to the function, it has skipped over the TypedefDecl, and thus hasn't generated an operation for it, and so it fails to resolve the typedef, leading to an unreachable error.

Curl_bufq_pass.c.zip

Steps to Reproduce

Run on the attached file.

@pgoodman pgoodman added the bug Something isn't working label Nov 21, 2023
@pgoodman pgoodman changed the title [Bug]: [Bug]: Unreachable when lowering typedef Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants