mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
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:
@@ -1,3 +1,7 @@
|
||||
2020-11-14 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* opencl-lang.c (opencl_component_ref): Make "comps" const.
|
||||
|
||||
2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user