<div dir="ltr">Thank you for the fix. <div><br></div><div>--Artem</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 23, 2015 at 9:32 PM, NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">chapuni added a subscriber: chapuni.<br>
<br>
================<br>
Comment at: cfe/trunk/lib/Driver/ToolChains.cpp:1492<br>
@@ +1491,3 @@<br>
+                                            const llvm::opt::ArgList &Args) {<br>
+  SmallVector<StringRef, 4> CudaPathCandidates;<br>
+<br>
----------------<br>
Fixed in r248459.<br>
<br>
================<br>
Comment at: cfe/trunk/lib/Driver/ToolChains.cpp:1498<br>
@@ +1497,3 @@<br>
+  else {<br>
+    CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda");<br>
+    CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda-7.0");<br>
----------------<br>
You were trying to make StringRef from temporary string concatenator.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D12989" rel="noreferrer" target="_blank">http://reviews.llvm.org/D12989</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">--Artem Belevich</div></div>
</div>