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:
parent
2c5b1849a6
commit
749065b7a7
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue