r263934 - clang/test/CodeGenCXX/cxx1z-lambda-star-this.cpp: Satisfy -Asserts.

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 21 04:40:16 PDT 2016


Author: chapuni
Date: Mon Mar 21 06:40:15 2016
New Revision: 263934

URL: http://llvm.org/viewvc/llvm-project?rev=263934&view=rev
Log:
clang/test/CodeGenCXX/cxx1z-lambda-star-this.cpp: Satisfy -Asserts.

Modified:
    cfe/trunk/test/CodeGenCXX/cxx1z-lambda-star-this.cpp

Modified: cfe/trunk/test/CodeGenCXX/cxx1z-lambda-star-this.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/cxx1z-lambda-star-this.cpp?rev=263934&r1=263933&r2=263934&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/cxx1z-lambda-star-this.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/cxx1z-lambda-star-this.cpp Mon Mar 21 06:40:15 2016
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++1y -triple i686-pc-windows-msvc -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -std=c++1y -triple i686-pc-windows-msvc -emit-llvm %s -o - | tee /tmp/__.bak | FileCheck %s
 //CHECK: %[[A_LAMBDA:.*]] = type { %struct.A }
 //CHECK: %[[B_LAMBDA:.*]] = type { %struct.B* }
 struct A {
@@ -12,11 +12,11 @@ int X = A{}.foo()();
 
 //CHECK: @"\01?foo at A@@QAE?A?<auto>@@XZ"(%struct.A* %this, %class.anon* noalias sret %[[A_LAMBDA_RETVAL:.*]])
 // get the first object with the closure type, which is of type 'struct.A'
-//CHECK: %0 = getelementptr inbounds %[[A_LAMBDA]], %[[A_LAMBDA]]* %[[A_LAMBDA_RETVAL]], i32 0, i32 0
-//CHECK: %1 = bitcast %struct.A* %0 to i8*
-//CHECK: %2 = bitcast %struct.A* %this1 to i8*
+//CHECK: %[[I0:.+]] = getelementptr inbounds %[[A_LAMBDA]], %[[A_LAMBDA]]* %[[A_LAMBDA_RETVAL]], i32 0, i32 0
+//CHECK: %[[I1:.+]] = bitcast %struct.A* %[[I0]] to i8*
+//CHECK: %[[I2:.+]] = bitcast %struct.A* %this1 to i8*
 // copy the contents ...
-//CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %1, i8* %2, i32 8, i32 8, i1 false)
+//CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %[[I1]], i8* %[[I2]], i32 8, i32 8, i1 false)
 
 struct B {
   double b = 222;
@@ -27,5 +27,5 @@ namespace ns2 {
 int X = B{}.bar()();
 }
 //CHECK: @"\01?bar at B@@QAE?A?<auto>@@XZ"(%struct.B* %this, %class.anon.0* noalias sret %agg.result)
-//CHECK: %0 = getelementptr inbounds %class.anon.0, %class.anon.0* %agg.result, i32 0, i32 0
-//CHECK: store %struct.B* %this1, %struct.B** %0, align 4
\ No newline at end of file
+//CHECK: %[[I20:.+]] = getelementptr inbounds %class.anon.0, %class.anon.0* %agg.result, i32 0, i32 0
+//CHECK: store %struct.B* %this1, %struct.B** %[[I20]], align 4




More information about the cfe-commits mailing list