<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">This new test is (expectedly) failing on the clang-5.0 release branch and we don't branch the debuginfo-tests repository.</div><div class=""><br class=""></div><a href="http://green.lab.llvm.org/green/job/clang-stage1-configure-RA-release-5/83/" class="">http://green.lab.llvm.org/green/job/clang-stage1-configure-RA-release-5/83/</a><div class=""><br class=""></div><div class="">Since this fixes a regression clang-5.0, I hereby nominate r313400 and r313399 for clang-5.0.1 if such a thing exists.</div><div class=""><br class=""></div><div class="">-- adrian<br class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 15, 2017, at 2:59 PM, Reid Kleckner via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Author: rnk<br class="">Date: Fri Sep 15 14:59:39 2017<br class="">New Revision: 313401<br class=""><br class="">URL: <a href="http://llvm.org/viewvc/llvm-project?rev=313401&view=rev" class="">http://llvm.org/viewvc/llvm-project?rev=313401&view=rev</a><br class="">Log:<br class="">[debuginfo-tests] Add string NRVO test for PR34513<br class=""><br class="">It should pass in -O0 and -O1 after r313400 and r313399.<br class=""><br class="">Added:<br class="">    debuginfo-tests/trunk/nrvo-string.cpp<br class=""><br class="">Added: debuginfo-tests/trunk/nrvo-string.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/nrvo-string.cpp?rev=313401&view=auto" class="">http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/nrvo-string.cpp?rev=313401&view=auto</a><br class="">==============================================================================<br class="">--- debuginfo-tests/trunk/nrvo-string.cpp (added)<br class="">+++ debuginfo-tests/trunk/nrvo-string.cpp Fri Sep 15 14:59:39 2017<br class="">@@ -0,0 +1,27 @@<br class="">+// This ensures that DW_OP_deref is inserted when necessary, such as when NRVO<br class="">+// of a string object occurs in C++.<br class="">+//<br class="">+// RUN: %clangxx -O0 -fno-exceptions %target_itanium_abi_host_triple %s -o %t.out -g<br class="">+// RUN: %test_debuginfo %s %t.out<br class="">+// RUN: %clangxx -O1 -fno-exceptions %target_itanium_abi_host_triple %s -o %t.out -g<br class="">+// RUN: %test_debuginfo %s %t.out<br class="">+//<br class="">+// PR34513<br class="">+<br class="">+struct string {<br class="">+  string() {}<br class="">+  string(int i) : i(i) {}<br class="">+  ~string() {}<br class="">+  int i = 0;<br class="">+};<br class="">+string get_string() {<br class="">+  string unused;<br class="">+  string result = 3;<br class="">+// DEBUGGER: break 21<br class="">+  return result;<br class="">+}<br class="">+int main() { get_string(); }<br class="">+<br class="">+// DEBUGGER: r<br class="">+// DEBUGGER: print result.i<br class="">+// CHECK:  = 3<br class=""><br class=""><br class="">_______________________________________________<br class="">llvm-commits mailing list<br class=""><a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>