summaryrefslogtreecommitdiff
path: root/src/routines/level1/xswap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/routines/level1/xswap.cc')
-rw-r--r--src/routines/level1/xswap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routines/level1/xswap.cc b/src/routines/level1/xswap.cc
index bc425f40..bfc4a739 100644
--- a/src/routines/level1/xswap.cc
+++ b/src/routines/level1/xswap.cc
@@ -64,7 +64,7 @@ StatusCode Xswap<T>::DoSwap(const size_t n,
// Retrieves the Xswap kernel from the compiled binary
try {
- auto& program = GetProgramFromCache();
+ const auto program = GetProgramFromCache();
auto kernel = Kernel(program, kernel_name);
// Sets the kernel arguments