[openmp] [clang] [llvm] [OpenMP] Remove `register_requires` global constructor (PR #80460)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 13:55:06 PST 2024


================
@@ -199,7 +199,7 @@ static int initLibrary(DeviceTy &Device) {
                                         Entry.size) != OFFLOAD_SUCCESS)
               REPORT("Failed to write symbol for USM %s\n", Entry.name);
           }
-        } else {
+        } else if (Entry.addr) {
----------------
jhuber6 wrote:

Isn't that already done in the `if` above?

https://github.com/llvm/llvm-project/pull/80460


More information about the llvm-commits mailing list