Skip to content
Snippets Groups Projects
Commit ff7ee076 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Remove size == 0 check (approxhpvm artifact)

parent da43f3a3
No related branches found
No related tags found
No related merge requests found
......@@ -236,12 +236,6 @@ void* llvm_visc_x86_argument_ptr(void* ptr, size_t size) {
}
void* llvm_visc_request_mem(void* ptr, size_t size) {
// Ignore objects whose size is 0 - no memory is requested.
if (size == 0) {
DEBUG(cout << "[X86] Request memory (ignored): " << ptr << flush << "\n");
return ptr;
}
pthread_mutex_lock(&ocl_mtx);
DEBUG(cout << "[X86] Request memory: " << ptr << flush << "\n");
MemTrackerEntry* MTE = MTracker.lookup(ptr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment