[all-commits] [llvm/llvm-project] 4d8871: PR50767: clear non-distinct debuginfo for function...
dobbelaj-snps via All-commits
all-commits at lists.llvm.org
Tue Jun 29 01:34:53 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4d8871a898b30f11c905b27954c18d826c0953c9
https://github.com/llvm/llvm-project/commit/4d8871a898b30f11c905b27954c18d826c0953c9
Author: Bruno De Fraine <brunodf at synopsys.com>
Date: 2021-06-29 (Tue, 29 Jun 2021)
Changed paths:
M clang/lib/CodeGen/CodeGenFunction.cpp
A clang/test/CodeGen/attr-nodebug2.c
Log Message:
-----------
PR50767: clear non-distinct debuginfo for function with nodebug definition after undecorated declaration
Fix suggested by Yuanfang Chen:
Non-distinct debuginfo is attached to the function due to the undecorated declaration. Later, when seeing the function definition and `nodebug` attribute, the non-distinct debuginfo should be cleared.
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D104777
More information about the All-commits
mailing list