[Openmp-commits] [PATCH] D29171: [libomptarget] Fix compilation with libc++

Jonas Hahnfeld via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 26 03:22:02 PST 2017


Hahnfeld created this revision.
Herald added a reviewer: EricWF.

iterator is only guaranteed to be default-constructible, without any argument.


https://reviews.llvm.org/D29171

Files:
  libomptarget/src/omptarget.cpp


Index: libomptarget/src/omptarget.cpp
===================================================================
--- libomptarget/src/omptarget.cpp
+++ libomptarget/src/omptarget.cpp
@@ -72,7 +72,7 @@
 
   HostDataToTargetListTy::iterator Entry;
 
-  LookupResult() : Flags({0,0,0}), Entry(0) {}
+  LookupResult() : Flags({0,0,0}), Entry() {}
 };
 
 /// Map for shadow pointers


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29171.85879.patch
Type: text/x-patch
Size: 371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170126/509945cf/attachment.bin>


More information about the Openmp-commits mailing list