From: David Majnemer Date: Fri, 20 Jun 2014 22:08:59 +0000 (+0000) Subject: CodeGen: Fix test to work with assertions as well X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0dc1e80a324b061c0143ce049032a1afd4dd1c7d;p=platform%2Fupstream%2Fllvm.git CodeGen: Fix test to work with assertions as well llvm-svn: 211410 --- diff --git a/clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp b/clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp index 8e87633..2fc4a62 100644 --- a/clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp +++ b/clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp @@ -74,7 +74,7 @@ T* test6(B* x) { return dynamic_cast(x); } // CHECK: [[CHECK:%.*]] = icmp eq %struct.B* %x, null // CHECK-NEXT: br i1 [[CHECK]] // CHECK: [[CAST:%.*]] = getelementptr inbounds %struct.B* %x, i32 0, i32 0, i32 0 -// CHECK-NEXT: [[VBPTR:%.*]] = getelementptr inbounds i8* %3, i32 4 +// CHECK-NEXT: [[VBPTR:%.*]] = getelementptr inbounds i8* [[CAST]], i32 4 // CHECK-NEXT: [[BITCAST:%.*]] = bitcast i8* [[VBPTR]] to i8** // CHECK-NEXT: [[VBTBL:%.*]] = load i8** [[BITCAST]], align 4 // CHECK-NEXT: [[VBOFFP:%.*]] = getelementptr inbounds i8* [[VBTBL]], i32 4