Files
carbon-lang/toolchain/check/cpp
Nicholas Bishop 8fdc8ebc37 Fix use-after-free of var name in BuildDefaultValueExpr (#8025)
The `var_name` string was built on the stack and then added to the
`IdentifierStore`. This lead to use-after-free, since `IdentifierStore`
just stores a `llvm::StringRef`.

Add it to `ast_context().Idents` to provide a longer-lived reference.
2026-10-25 15:26:19 +00:00
..