Open kumarak opened 3 months ago
If this is an important issue please provide a minimal example we can reproduce on, it will speed up getting it fixed.
I suspect this unit test would repro the issue: https://github.com/trailofbits/vast/blob/6668ec5b7ea8f2e054cbf305be23d7f8137c8aba/test/vast/Transform/HL/LowerTypes/fn-ptr-a.c#L4
The difference is that we're not using the ASTConsumer interface, and instead we're doing codegen by visiting a TranslationUnitDecl
.
@lkorenc this is an important issue. What would help catch these types of issues sooner is if VAST would add a testing harness/mechanism that doesn't use the ASTConsumer interface, and instead operations on a clang::TranslationUnitDecl
, / clang::ASTContext
.
@lkorenc, It is related to https://github.com/trailofbits/vast/issues/450 and I can reproduce with the file attached. Attached another source file that can help you reproduce the issue.
VAST version
master
LLVM version
18.1.4
Operating system
MacOS
Description
Asserts due to invalid cast while lowering curl codebase.
Debugger output that might help
Steps to Reproduce
Lowering curl codebase