From: NAKAMURA Takumi Date: Thu, 11 Oct 2012 11:20:31 +0000 (+0000) Subject: clang/test/CodeGenCXX/microsoft-uuidof.cpp: Fix for -Asserts. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2cdd4d66a3791410e8de1c0232ae2eed53b8036;p=clang clang/test/CodeGenCXX/microsoft-uuidof.cpp: Fix for -Asserts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165712 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/microsoft-uuidof.cpp b/test/CodeGenCXX/microsoft-uuidof.cpp index ceefacfbc7..8eeb4490ac 100644 --- a/test/CodeGenCXX/microsoft-uuidof.cpp +++ b/test/CodeGenCXX/microsoft-uuidof.cpp @@ -39,16 +39,16 @@ void fun() { // CHECK: %s1_2 = alloca %struct._GUID, align 4 // CHECK: %s1_3 = alloca %struct._GUID, align 4 - // CHECK: %0 = bitcast %struct._GUID* %s1_1 to i8* - // CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %0, i8* bitcast (%struct._GUID* @__uuid_12345678-1234-1234-1234-1234567890ab to i8*), i32 16, i32 4, i1 false) + // CHECK: [[U1:%.+]] = bitcast %struct._GUID* %s1_1 to i8* + // CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* [[U1]], i8* bitcast (%struct._GUID* @__uuid_12345678-1234-1234-1234-1234567890ab to i8*), i32 16, i32 4, i1 false) GUID s1_1 = __uuidof(S1); - // CHECK: %1 = bitcast %struct._GUID* %s1_2 to i8* - // CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %1, i8* bitcast (%struct._GUID* @__uuid_12345678-1234-1234-1234-1234567890ab to i8*), i32 16, i32 4, i1 false) + // CHECK: [[U2:%.+]] = bitcast %struct._GUID* %s1_2 to i8* + // CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* [[U2]], i8* bitcast (%struct._GUID* @__uuid_12345678-1234-1234-1234-1234567890ab to i8*), i32 16, i32 4, i1 false) GUID s1_2 = __uuidof(S1); - // CHECK: %2 = bitcast %struct._GUID* %s1_3 to i8* - // CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %2, i8* bitcast (%struct._GUID* @__uuid_12345678-1234-1234-1234-1234567890ab to i8*), i32 16, i32 4, i1 false) + // CHECK: [[U3:%.+]] = bitcast %struct._GUID* %s1_3 to i8* + // CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* [[U3]], i8* bitcast (%struct._GUID* @__uuid_12345678-1234-1234-1234-1234567890ab to i8*), i32 16, i32 4, i1 false) GUID s1_3 = __uuidof(s1); }