<div dir="ltr">Sorry about that, target triple added in r300803.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 April 2017 at 17:12, Galina Kistanova <span dir="ltr"><<a href="mailto:gkistanova@gmail.com" target="_blank">gkistanova@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Richard,<br><br>This commit broke one of our builders:<br><br>Failing Tests (1):<br>    Clang :: CodeGenCXX/cxx1z-class-<wbr>deduction.cpp<br><br><a href="http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/1267" target="_blank">http://lab.llvm.org:8011/<wbr>builders/llvm-clang-x86_64-<wbr>expensive-checks-win/builds/<wbr>1267</a><br><br>Please have a look at this?<br><br>Thanks<span class="HOEnZb"><font color="#888888"><br><br>Galina<br><br><br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 19, 2017 at 2:15 PM, Richard Smith via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rsmith<br>
Date: Wed Apr 19 16:15:45 2017<br>
New Revision: 300762<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=300762&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-pr<wbr>oject?rev=300762&view=rev</a><br>
Log:<br>
Fix assertion failure in codegen on non-template deduction guide.<br>
<br>
Added:<br>
    cfe/trunk/test/CodeGenCXX/cxx1<wbr>z-class-deduction.cpp<br>
Modified:<br>
    cfe/trunk/lib/CodeGen/CodeGenM<wbr>odule.cpp<br>
<br>
Modified: cfe/trunk/lib/CodeGen/CodeGenM<wbr>odule.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=300762&r1=300761&r2=300762&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-pr<wbr>oject/cfe/trunk/lib/CodeGen/Co<wbr>deGenModule.cpp?rev=300762&r1=<wbr>300761&r2=300762&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- cfe/trunk/lib/CodeGen/CodeGenM<wbr>odule.cpp (original)<br>
+++ cfe/trunk/lib/CodeGen/CodeGenM<wbr>odule.cpp Wed Apr 19 16:15:45 2017<br>
@@ -3794,6 +3794,10 @@ void CodeGenModule::EmitTopLevelDec<wbr>l(Dec<br>
     <wbr>AddDeferredUnusedCoverageMappi<wbr>ng(D);<br>
     break;<br>
<br>
+  case Decl::CXXDeductionGuide:<br>
+    // Function-like, but does not result in code emission.<br>
+    break;<br>
+<br>
   case Decl::Var:<br>
   case Decl::Decomposition:<br>
     // Skip variable templates<br>
<br>
Added: cfe/trunk/test/CodeGenCXX/cxx1<wbr>z-class-deduction.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/cxx1z-class-deduction.cpp?rev=300762&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-pr<wbr>oject/cfe/trunk/test/CodeGenCX<wbr>X/cxx1z-class-deduction.cpp?<wbr>rev=300762&view=auto</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- cfe/trunk/test/CodeGenCXX/cxx1<wbr>z-class-deduction.cpp (added)<br>
+++ cfe/trunk/test/CodeGenCXX/cxx1<wbr>z-class-deduction.cpp Wed Apr 19 16:15:45 2017<br>
@@ -0,0 +1,21 @@<br>
+// RUN: %clang_cc1 -std=c++1z %s -emit-llvm -o - | FileCheck %s<br>
+<br>
+template<typename T> struct A {<br>
+  A(T = 0);<br>
+  A(void*);<br>
+};<br>
+<br>
+template<typename T> A(T*) -> A<long>;<br>
+A() -> A<int>;<br>
+<br>
+// CHECK-LABEL: @_Z1fPi(<br>
+void f(int *p) {<br>
+  // CHECK: @_ZN1AIiEC<br>
+  A a{};<br>
+<br>
+  // CHECK: @_ZN1AIlEC<br>
+  A b = p;<br>
+<br>
+  // CHECK: @_ZN1AIxEC<br>
+  A c = 123LL;<br>
+}<br>
<br>
<br>
______________________________<wbr>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>