[Openmp-commits] [PATCH] D75946: [LIBOMPTARGET][WIP]Fix PR45139: Bug in mixing Python and OpenMP target offload.
Alexey Bataev via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Mar 10 10:53:10 PDT 2020
ABataev created this revision.
Herald added subscribers: openmp-commits, guansong.
Herald added a reviewer: jdoerfert.
Herald added a project: OpenMP.
Explicitly initialize data members of RTLsTy class upon construction.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75946
Files:
openmp/libomptarget/src/rtl.h
Index: openmp/libomptarget/src/rtl.h
===================================================================
--- openmp/libomptarget/src/rtl.h
+++ openmp/libomptarget/src/rtl.h
@@ -13,6 +13,7 @@
#ifndef _OMPTARGET_RTL_H
#define _OMPTARGET_RTL_H
+#include "omptarget.h"
#include <list>
#include <map>
#include <mutex>
@@ -121,9 +122,9 @@
// binaries.
std::vector<RTLInfoTy *> UsedRTLs;
- int64_t RequiresFlags;
+ int64_t RequiresFlags = OMP_REQ_UNDEFINED;
- explicit RTLsTy() {}
+ explicit RTLsTy() = default;
// Register the clauses of the requires directive.
void RegisterRequires(int64_t flags);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75946.249445.patch
Type: text/x-patch
Size: 623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200310/6997f5e3/attachment.bin>
More information about the Openmp-commits
mailing list