diff options
| author | Alejandro Álvarez Ayllón <alejandro.alvarez@sonarsource.com> | 2025-01-06 11:52:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-06 18:52:11 +0800 |
| commit | a13bcf3ced35b0df89ac13670690b4482052e47f (patch) | |
| tree | 747b8071d9ac19a9c8a7c2bdad3762c252770783 /clang/lib/CodeGen/CodeGenFunction.cpp | |
| parent | 31340457399d218c27a7a74770eb9fa03e6ae92b (diff) | |
| download | llvm-a13bcf3ced35b0df89ac13670690b4482052e47f.zip llvm-a13bcf3ced35b0df89ac13670690b4482052e47f.tar.gz llvm-a13bcf3ced35b0df89ac13670690b4482052e47f.tar.bz2 | |
[clang] Do not serialize function definitions without a body (#121550)
An instantiated templated function definition may not have a body due to
parsing errors inside the templated function. When serializing, an
assert is triggered inside `ASTRecordWriter::AddFunctionDefinition`.
The instantiation may happen on an intermediate module.
The test case was reduced from `mp-units`.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
