[Openmp-commits] [openmp] r293277 - [libomptarget] Fix compilation with libc++

Jonas Hahnfeld via Openmp-commits openmp-commits at lists.llvm.org
Fri Jan 27 03:03:34 PST 2017


Author: hahnfeld
Date: Fri Jan 27 05:03:33 2017
New Revision: 293277

URL: http://llvm.org/viewvc/llvm-project?rev=293277&view=rev
Log:
[libomptarget] Fix compilation with libc++

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

Differential Revision: https://reviews.llvm.org/D29171

Modified:
    openmp/trunk/libomptarget/src/omptarget.cpp

Modified: openmp/trunk/libomptarget/src/omptarget.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/src/omptarget.cpp?rev=293277&r1=293276&r2=293277&view=diff
==============================================================================
--- openmp/trunk/libomptarget/src/omptarget.cpp (original)
+++ openmp/trunk/libomptarget/src/omptarget.cpp Fri Jan 27 05:03:33 2017
@@ -72,7 +72,7 @@ struct LookupResult {
 
   HostDataToTargetListTy::iterator Entry;
 
-  LookupResult() : Flags({0,0,0}), Entry(0) {}
+  LookupResult() : Flags({0,0,0}), Entry() {}
 };
 
 /// Map for shadow pointers




More information about the Openmp-commits mailing list