SWDEV-406894 - Fix segfault when access HIPRTC_JIT_LOG_VERBOSE from options buffer

Change-Id: I24143dfb726d9a71fdb17b03d5b5dd910b54f5bb
This commit is contained in:
Ioannis Assiouras authored and Maneesh Gupta committed 2023-06-22 00:53:29 -04:00
1 förälder 422d3ea035
incheckning 0af9788e32
1 file changed
+1 -1
+1 -1
Visa fil
@@ -486,7 +486,7 @@ bool RTCLinkProgram::AddLinkerOptions(unsigned int num_options, hiprtcJIT_option
link_args_.generate_debug_info_ = *(reinterpret_cast<int*>(options_vals_ptr[opt_idx]));
break;
case HIPRTC_JIT_LOG_VERBOSE:
link_args_.log_verbose_ = *(reinterpret_cast<long*>(options_vals_ptr[opt_idx]));
link_args_.log_verbose_ = reinterpret_cast<size_t>(options_vals_ptr[opt_idx]);
break;
case HIPRTC_JIT_GENERATE_LINE_INFO:
link_args_.generate_line_info_ = *(reinterpret_cast<int*>(options_vals_ptr[opt_idx]));