summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/microsoft-abi-typeid.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-06-20 21:44:39 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-06-20 21:44:39 +0000
commit05849769421acb1490668286028fd2d06ac33430 (patch)
treeff8605b38fc39f4456765e61a0dd4016bdeb4899 /test/CodeGenCXX/microsoft-abi-typeid.cpp
parente76e010ff719d9e32dff9dcc6361a62b9f09d55f (diff)
CodeGen: typeid/dynamic_cast tests don't need asserts
These tests relied on information that was only available for clang builds that included asserts. Fix these tests to lift that restriction. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/microsoft-abi-typeid.cpp')
-rw-r--r--test/CodeGenCXX/microsoft-abi-typeid.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/CodeGenCXX/microsoft-abi-typeid.cpp b/test/CodeGenCXX/microsoft-abi-typeid.cpp
index b8074baa62..3875c56ca4 100644
--- a/test/CodeGenCXX/microsoft-abi-typeid.cpp
+++ b/test/CodeGenCXX/microsoft-abi-typeid.cpp
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm -O1 -o - -triple=i386-pc-win32 %s | FileCheck %s
-// REQUIRES: asserts
struct type_info;
namespace std { using ::type_info; }
@@ -27,12 +26,10 @@ const std::type_info* test3_typeid() { return &typeid(*fn()); }
// CHECK-LABEL: define %struct.type_info* @"\01?test3_typeid@@YAPBUtype_info@@XZ"()
// CHECK: [[CALL:%.*]] = tail call %struct.A* @"\01?fn@@YAPAUA@@XZ"()
// CHECK-NEXT: [[CMP:%.*]] = icmp eq %struct.A* [[CALL]], null
-// CHECK-NEXT: br i1 [[CMP]], label %typeid.bad_typeid, label %typeid.end
-// CHECK-LABEL: typeid.bad_typeid:
-// CHECK-NEXT: tail call i8* @__RTtypeid(i8* null)
+// CHECK-NEXT: br i1 [[CMP]]
+// CHECK: tail call i8* @__RTtypeid(i8* null)
// CHECK-NEXT: unreachable
-// CHECK-LABEL: typeid.end:
-// CHECK-NEXT: [[THIS:%.*]] = bitcast %struct.A* [[CALL]] to i8*
+// CHECK: [[THIS:%.*]] = bitcast %struct.A* [[CALL]] to i8*
// CHECK-NEXT: [[VBTBLP:%.*]] = bitcast %struct.A* [[CALL]] to i8**
// CHECK-NEXT: [[VBTBL:%.*]] = load i8** [[VBTBLP]], align 4
// CHECK-NEXT: [[VBSLOT:%.*]] = getelementptr inbounds i8* [[VBTBL]], i32 4