[PATCH] D18328: [CUDA] Add option to mark most functions inside <complex> as host+device.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 21 14:23:50 PDT 2016


jlebar added inline comments.

================
Comment at: lib/Sema/SemaCUDA.cpp:474
@@ +473,3 @@
+  SourceLocation Loc = FD.getLocation();
+  if (!SM.isInSystemHeader(Loc))
+    return false;
----------------
tra wrote:
> Can C++ library headers ever be non-system? I.e. can someone use libc++ via -I ?
> 
Good question, I have no idea if that's supposed to work.  Reid, do you know?


http://reviews.llvm.org/D18328





More information about the cfe-commits mailing list