sfantao added a comment.

Hi Justin,

Thanks for the patch.



================
Comment at: clang/lib/Driver/Driver.cpp:479
+    // the device toolchain we create depends on both.
+    ToolChain *&CudaTC = ToolChains[CudaTriple.str() + "/" + HostTriple.str()];
+    if (!CudaTC) {
----------------
I am not sure I understand why to pair host and device toolchain in the map. 
The driver can be used to several compilations, but how do these compilation 
use different host toolchains? Can you give an example of an invocation? Maybe 
add it to the regression tests bellow. 


https://reviews.llvm.org/D26774



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to