r211410 - CodeGen: Fix test to work with assertions as well
David Majnemer
david.majnemer at gmail.com
Fri Jun 20 15:08:59 PDT 2014
Author: majnemer
Date: Fri Jun 20 17:08:59 2014
New Revision: 211410
URL: http://llvm.org/viewvc/llvm-project?rev=211410&view=rev
Log:
CodeGen: Fix test to work with assertions as well
Modified:
cfe/trunk/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp
Modified: cfe/trunk/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp?rev=211410&r1=211409&r2=211410&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp Fri Jun 20 17:08:59 2014
@@ -74,7 +74,7 @@ T* test6(B* x) { return dynamic_cast<T*>
// 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
More information about the cfe-commits
mailing list