[all-commits] [llvm/llvm-project] a13bcf: [clang] Do not serialize function definitions with...
Alejandro Álvarez Ayllón via All-commits
all-commits at lists.llvm.org
Mon Jan 6 02:52:34 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a13bcf3ced35b0df89ac13670690b4482052e47f
https://github.com/llvm/llvm-project/commit/a13bcf3ced35b0df89ac13670690b4482052e47f
Author: Alejandro Álvarez Ayllón <alejandro.alvarez at sonarsource.com>
Date: 2025-01-06 (Mon, 06 Jan 2025)
Changed paths:
M clang/lib/Serialization/ASTWriter.cpp
A clang/test/Modules/missing-body-in-import.cpp
Log Message:
-----------
[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`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list