2 Commits

Author SHA1 Message Date
Benjamin Kramer
9e2eb95c23 [Coroutines] [CodeGen] Don't actually emit an output file from unit test 2025-02-28 15:13:27 +01:00
Chuanqi Xu
15c49b9db3 [Coroutines] [CodeGen] Don't change AST in CodeGen/Coroutines
The root source of other odd bugs.

We performed a hack in CodeGen/Coroutines. But we didn't recognize that
the CodeGen is a consumer of AST. The CodeGen shouldn't change AST in
any ways. It'll break the assumption about the ASTConsumer in Clang's
framework, which may break any other clang-based tools which depends on
multiple consumers to work together.

The fix here is simple. But I am not super happy about the test. It is
too specific and verbose. We can remove this if we can get the signature
of the AST in ASTContext.
2025-02-28 16:03:50 +08:00