From: David Blaikie Date: Sun, 15 Feb 2015 04:12:14 +0000 (+0000) Subject: Update test to make it robust to migration to typeless pointers X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00669a92989e209b1b0a57f8408459c4bb5fbad6;p=clang Update test to make it robust to migration to typeless pointers git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229269 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/new.cpp b/test/CodeGenCXX/new.cpp index 5138c1bdb5..30a8c23bdd 100644 --- a/test/CodeGenCXX/new.cpp +++ b/test/CodeGenCXX/new.cpp @@ -196,7 +196,7 @@ namespace test15 { struct A { A(); ~A(); }; // CHECK-LABEL: define void @_ZN6test156test0aEPv( - // CHECK: [[P:%.*]] = load i8* + // CHECK: [[P:%.*]] = load i8** // CHECK-NOT: icmp eq i8* [[P]], null // CHECK-NOT: br i1 // CHECK: [[T0:%.*]] = bitcast i8* [[P]] to [[A:%.*]]* @@ -206,7 +206,7 @@ namespace test15 { } // CHECK-LABEL: define void @_ZN6test156test0bEPv( - // CHECK: [[P0:%.*]] = load i8* + // CHECK: [[P0:%.*]] = load i8** // CHECK: [[P:%.*]] = call i8* @_ZnwmPvb(i64 1, i8* [[P0]] // CHECK-NEXT: icmp eq i8* [[P]], null // CHECK-NEXT: br i1 @@ -257,7 +257,7 @@ namespace test15 { // CHECK-NEXT: [[T0:%.*]] = sext i32 [[N]] to i64 // CHECK-NEXT: [[T1:%.*]] = icmp slt i64 [[T0]], 0 // CHECK-NEXT: [[T2:%.*]] = select i1 [[T1]], i64 -1, i64 [[T0]] - // CHECK-NEXT: [[P:%.*]] = load i8* + // CHECK-NEXT: [[P:%.*]] = load i8** // CHECK: [[BEGIN:%.*]] = bitcast i8* [[P]] to [[A:%.*]]* // CHECK-NEXT: [[ISEMPTY:%.*]] = icmp eq i64 [[T0]], 0 // CHECK-NEXT: br i1 [[ISEMPTY]],