From 0dc1e80a324b061c0143ce049032a1afd4dd1c7d Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Fri, 20 Jun 2014 22:08:59 +0000 Subject: [PATCH] CodeGen: Fix test to work with assertions as well llvm-svn: 211410 --- clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4