summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/api
diff options
context:
space:
mode:
authorEdB <[email protected]>2015-04-24 12:59:56 +0200
committerTom Stellard <[email protected]>2015-04-29 12:45:07 +0000
commit2d112ed96152bc62e5417472270f29966c8feece (patch)
treee3165009b639671a6d48c10ca5295e7db8b70944 /src/gallium/state_trackers/clover/api
parent5ca9b23319db66d9768d46c0a7504b7bb079164a (diff)
clover: make module::symbol::name a string
Acked-by: Francisco Jerez <[email protected]> Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/api')
-rw-r--r--src/gallium/state_trackers/clover/api/program.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp
index b3be2b8d1bb..913d195a16f 100644
--- a/src/gallium/state_trackers/clover/api/program.cpp
+++ b/src/gallium/state_trackers/clover/api/program.cpp
@@ -293,8 +293,7 @@ clGetProgramInfo(cl_program d_prog, cl_program_info param,
case CL_PROGRAM_KERNEL_NAMES:
buf.as_string() = fold([](const std::string &a, const module::symbol &s) {
- return ((a.empty() ? "" : a + ";") +
- std::string(s.name.begin(), s.name.size()));
+ return ((a.empty() ? "" : a + ";") + s.name);
}, std::string(), prog.symbols());
break;