Skip to content

Commit d4f4f80

Browse files
committed
Revert "[libomptarget] Fix CUDA plugin build regression"
This reverts commit b64482e.
1 parent 5ab86ef commit d4f4f80

File tree

1 file changed

+1
-1
lines changed
  • openmp/libomptarget/plugins-nextgen/cuda/src

1 file changed

+1
-1
lines changed

openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ struct CUDADeviceTy : public GenericDeviceTy {
11601160
// automatically so we must create it ourselves. The backend will emit
11611161
// several globals that contain function pointers we can call. These are
11621162
// prefixed with a known name due to Nvidia's lack of section support.
1163-
auto ELFObjOrErr = ELF64LEObjectFile::create(Image.getMemoryBuffer());
1163+
auto ELFObjOrErr = Handler.getELFObjectFile(Image);
11641164
if (!ELFObjOrErr)
11651165
return ELFObjOrErr.takeError();
11661166

0 commit comments

Comments
 (0)