summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-06-20 22:08:59 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-06-20 22:08:59 +0000
commit0dc1e80a324b061c0143ce049032a1afd4dd1c7d (patch)
treecf4843b00853fc74422d7899df1ba9e355fffd21 /clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp
parent411840d963f8e181caa30f007e4c2c08e80ed588 (diff)
downloadbcm5719-llvm-0dc1e80a324b061c0143ce049032a1afd4dd1c7d.tar.gz
bcm5719-llvm-0dc1e80a324b061c0143ce049032a1afd4dd1c7d.zip
CodeGen: Fix test to work with assertions as well
llvm-svn: 211410
Diffstat (limited to 'clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp')
-rw-r--r--clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp b/clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp
index 8e87633dcc1..2fc4a622c9a 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<T*>(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
OpenPOWER on IntegriCloud