]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Add and use CCodeConstantIdentifier for accessing constants
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 15 Nov 2021 19:43:19 +0000 (20:43 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 15 Nov 2021 19:43:19 +0000 (20:43 +0100)
commit5b6345a6386b05aaf3f11cb3572940413eb878a8
tree5c7e8d78df6d8eb9694bfebc75337708ccf62761
parent9dff977bed612cbb76807d80571a3029ae9aed13
codegen: Add and use CCodeConstantIdentifier for accessing constants

If an address to a constant value is required then its identifier needs
to be used instead of referring to a temporary copy.

Fixes a regression of f1a8f2a4c6771124abd61fd0ebfa991c846575fe

Found by -fsanitize=address
ccode/Makefile.am
ccode/valaccodeconstantidentifier.vala [new file with mode: 0644]
codegen/valaccodebasemodule.vala
codegen/valaccodememberaccessmodule.vala
tests/Makefile.am
tests/constants/member-access.c-expected [new file with mode: 0644]
tests/constants/member-access.vala [new file with mode: 0644]