Skip to content

Commit

Permalink
Add a TODO to make sure we can serialize/deserialize the decl pointer…
Browse files Browse the repository at this point in the history
… into the AST
  • Loading branch information
bricknerb committed Mar 5, 2025
1 parent 89e56d5 commit 435468e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toolchain/sem_ir/function.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ struct FunctionFields {
// If the function is imported from C++, points to the Clang declaration in
// the AST. Used for mangling. The AST is owned by `CompileSubcommand` so we
// expect it to be live from `Function` creation to mangling.
// TODO: #4666 Ensure we can easily serialize/deserialize this. Consider decl
// ID to point into the AST.
const clang::NamedDecl* cpp_clang_decl = nullptr;
};

Expand Down

0 comments on commit 435468e

Please sign in to comment.