fix build with intrinsics enabled
authorJiri Horner <laeqten@gmail.com>
Sun, 17 Dec 2017 19:23:15 +0000 (20:23 +0100)
committerJiri Horner <laeqten@gmail.com>
Sun, 17 Dec 2017 19:23:15 +0000 (20:23 +0100)
* since #10231 opencv with instrumentation does not build

modules/core/src/ocl.cpp

index 15a2180..c6aefde 100644 (file)
@@ -3660,9 +3660,9 @@ struct Program::Impl
         CV_Assert(src_);
         CV_Assert(src_->kind_ == ProgramSource::Impl::PROGRAM_SOURCE_CODE);
         CV_Assert(handle == NULL);
-        CV_INSTRUMENT_REGION_OPENCL_COMPILE(cv::format("Build OpenCL program: %s/%s %" PRIx64 " options: %s",
+        CV_INSTRUMENT_REGION_OPENCL_COMPILE(cv::format("Build OpenCL program: %s/%s %s options: %s",
                 sourceModule_.c_str(), sourceName_.c_str(),
-                src.hash(), buildflags.c_str()).c_str());
+                src_->sourceHash_.c_str(), buildflags.c_str()).c_str());
 
         CV_LOG_VERBOSE(NULL, 0, "Compile... " << sourceModule_.c_str() << "/" << sourceName_.c_str());