]> gcc.gnu.org Git - gcc.git/commit
btf: fix type id in BTF_KIND_FUNC struct data.
authorCupertino Miranda <cupertino.miranda@oracle.com>
Tue, 30 Jan 2024 19:01:12 +0000 (19:01 +0000)
committerDavid Faust <david.faust@oracle.com>
Tue, 5 Mar 2024 18:29:37 +0000 (10:29 -0800)
commit193966aab3bba1ca27630a23f4b575c53be9af03
tree4cf1a2f3d4f683c9e200e678d7edf82a48464424
parent47f5e3f0ff7a57dc9cf294a4250c7330335476b8
btf: fix type id in BTF_KIND_FUNC struct data.

This patch corrects the addition of +1 on the type id, which originally
was done in the wrong location and led to func_dtd->dtd_type for
BTF_KIND_FUNC struct data to contain the type id of the previous entry.

gcc/ChangeLog:

* btfout.cc (btf_collect_dataset): Corrects BTF type id.

(cherry picked from commit 0198cade5ac15c35ed3f5af54060d7bc6a39f326)
gcc/btfout.cc
This page took 0.069092 seconds and 6 git commands to generate.