From d6e1e7c8702430e327a3063e0e55b5b8d82e7e1d Mon Sep 17 00:00:00 2001 From: Grzegorz Wawiorko Date: Wed, 2 Oct 2019 12:57:40 +0200 Subject: [PATCH] Fix Issue 462 - test_svm crash (#463) --- test_conformance/SVM/test_enqueue_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_conformance/SVM/test_enqueue_api.cpp b/test_conformance/SVM/test_enqueue_api.cpp index fcb761e9..a5e437e5 100644 --- a/test_conformance/SVM/test_enqueue_api.cpp +++ b/test_conformance/SVM/test_enqueue_api.cpp @@ -220,7 +220,7 @@ int test_svm_enqueue_api(cl_device_id deviceID, cl_context c, cl_command_queue q //event info verification for new SVM commands cl_command_type commandType; - for (auto check_event : eventMemFillList) { + for (auto &check_event : eventMemFillList) { error = clGetEventInfo(check_event, CL_EVENT_COMMAND_TYPE, sizeof(cl_command_type), &commandType, NULL); test_error(error, "clGetEventInfo failed"); if (commandType != CL_COMMAND_SVM_MEMFILL)