<div dir="ltr">Aha, nice catch!<div><br></div><div>-eric</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 23, 2015 at 9:32 PM NAKAMURA Takumi <<a href="mailto:geek4civic@gmail.com">geek4civic@gmail.com</a>> wrote:<br></div><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>
<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>
</blockquote></div>