ABataev added a comment.

Tests?



================
Comment at: lib/Driver/Driver.cpp:556
           else {
-            const ToolChain &TC = getToolChain(C.getInputArgs(), TT);
-            C.addOffloadDeviceToolChain(&TC, Action::OFK_OpenMP);
+            const ToolChain *TC = nullptr;
+            // CUDA toolchains have to be selected differently. They pair host
----------------
Seems to me you're not using this initial value, so it is better to leave this 
variable uninitialized


Repository:
  rL LLVM

https://reviews.llvm.org/D29658



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

Reply via email to