Skip to content

Commit

Permalink
Assert that Device is valid for memory poisoning
Browse files Browse the repository at this point in the history
This (hopefully) silences a Coverity issue.
  • Loading branch information
RossBrunton committed Jan 27, 2025
1 parent 095e846 commit 94b32ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/loader/layers/sanitizer/msan/msan_interceptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ ur_result_t MsanInterceptor::allocateMemory(ur_context_handle_t Context,
if (Type != AllocType::DEVICE_USM) {
return UR_RESULT_SUCCESS;
}
assert(Device);

auto AI = std::make_shared<MsanAllocInfo>(MsanAllocInfo{(uptr)Allocated,
Size,
Expand Down

0 comments on commit 94b32ac

Please sign in to comment.