Add use of const in opencl-lang.c

I found another expression-related spot that could use constification.
This patch adds it.  Tested by rebuilding.

gdb/ChangeLog
2020-11-14  Tom Tromey  <tom@tromey.com>

	* opencl-lang.c (opencl_component_ref): Make "comps" const.
This commit is contained in:
Tom Tromey 2020-11-14 09:22:17 -07:00
parent 2c5b1849a6
commit 749065b7a7
2 changed files with 6 additions and 2 deletions

View file

@ -327,8 +327,8 @@ create_value (struct gdbarch *gdbarch, struct value *val, enum noside noside,
/* OpenCL vector component access. */
static struct value *
opencl_component_ref (struct expression *exp, struct value *val, char *comps,
enum noside noside)
opencl_component_ref (struct expression *exp, struct value *val,
const char *comps, enum noside noside)
{
LONGEST lowb, highb;
int src_len;