diff --git a/openmp/libomptarget/src/rtl.cpp b/openmp/libomptarget/src/rtl.cpp --- a/openmp/libomptarget/src/rtl.cpp +++ b/openmp/libomptarget/src/rtl.cpp @@ -505,21 +505,6 @@ assert(R->IsUsed && "Expecting used RTLs."); - if (R->is_valid_binary_info) { - if (!R->is_valid_binary_info(Img, Info)) { - DP("Image " DPxMOD " is NOT compatible with RTL %s!\n", - DPxPTR(Img->ImageStart), R->RTLName.c_str()); - continue; - } - } else if (!R->is_valid_binary(Img)) { - DP("Image " DPxMOD " is NOT compatible with RTL %s!\n", - DPxPTR(Img->ImageStart), R->RTLName.c_str()); - continue; - } - - DP("Image " DPxMOD " is compatible with RTL " DPxMOD "!\n", - DPxPTR(Img->ImageStart), DPxPTR(R->LibraryHandler)); - FoundRTL = R; // Execute dtors for static objects if the device has been used, i.e.