]> 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 20:18:45 +0000 (21:18 +0100)
commit3726b5385f2a722a3a18cb428fbad56297ec1913
tree7ca66757c9f00953aab8d935d81691cf12bdd6f1
parent58b08bf1f1b2125208f2c5a04d540ce464d9d63d
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.vala [new file with mode: 0644]