Skip to content

Commit 09234cd

Browse files
committed
Avoid reliance on MSVC-specific, implicit conversion from a function pointer to void*
1 parent 84c9993 commit 09234cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/core/providers/qnn/qnn_provider_factory.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ OrtStatus* CreateEpFactories(const char* /*registration_name*/, const OrtApiBase
256256
#endif
257257

258258
// Identify the path of the current dynamic library, and expect that backend_path is in the same directory.
259-
onnxruntime::PathString current_path = GetDynamicLibraryLocationByAddress(CreateEpFactories);
259+
onnxruntime::PathString current_path = GetDynamicLibraryLocationByAddress(reinterpret_cast<const void*>(&CreateEpFactories));
260260
if (!current_path.empty()) {
261261
const std::filesystem::path parent_path = std::filesystem::path{std::move(current_path)}.parent_path();
262262
backend_path = (parent_path / backend_path).string();

0 commit comments

Comments
 (0)