2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 -fno-rtti -emit-llvm %s -o - -mconstructor-aliases -triple=i386-pc-win32 | FileCheck %s
|
2013-08-21 14:25:03 +08:00
|
|
|
|
|
|
|
struct Left {
|
|
|
|
virtual void left();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Right {
|
|
|
|
virtual void right();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ChildNoOverride : Left, Right {
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ChildOverride : Left, Right {
|
|
|
|
virtual void left();
|
|
|
|
virtual void right();
|
|
|
|
};
|
|
|
|
|
|
|
|
extern "C" void foo(void *);
|
|
|
|
|
|
|
|
void call_left_no_override(ChildNoOverride *child) {
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define dso_local void @"?call_left_no_override
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: %[[CHILD:.*]] = load %struct.ChildNoOverride
|
|
|
|
|
|
|
|
child->left();
|
|
|
|
// Only need to cast 'this' to Left*.
|
|
|
|
// CHECK: %[[LEFT:.*]] = bitcast %struct.ChildNoOverride* %[[CHILD]] to %struct.Left*
|
|
|
|
// CHECK: %[[VFPTR:.*]] = bitcast %struct.Left* %[[LEFT]] to void (%struct.Left*)***
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[VFTABLE:.*]] = load void (%struct.Left*)**, void (%struct.Left*)*** %[[VFPTR]]
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK: %[[VFUN:.*]] = getelementptr inbounds void (%struct.Left*)*, void (%struct.Left*)** %[[VFTABLE]], i64 0
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[VFUN_VALUE:.*]] = load void (%struct.Left*)*, void (%struct.Left*)** %[[VFUN]]
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: call x86_thiscallcc void %[[VFUN_VALUE]](%struct.Left* %[[LEFT]])
|
|
|
|
// CHECK: ret
|
|
|
|
}
|
|
|
|
|
|
|
|
void ChildOverride::left() {
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define dso_local x86_thiscallcc void @"?left@ChildOverride@@UAEXXZ"
|
[MS] Apply adjustments after storing 'this'
Summary:
The MS ABI convention is that the 'this' pointer on entry is the address
of the vfptr that was used to make the virtual method call. In other
words, the pointer on entry always points to the base subobject that
introduced the virtual method. Consider this hierarchy:
struct A { virtual void f() = 0; };
struct B { virtual void g() = 0; };
struct C : A, B {
void f() override;
void g() override;
};
On entry to C::g, [ER]CX will contain the address of C's B subobject,
and C::g will have to subtract sizeof(A) to recover a pointer to C.
Before this change, we applied this adjustment in the prologue and
stored the new value into the "this" local variable alloca used for
debug info. However, MSVC does not do this, presumably because it is
often profitable to fold the adjustment into later field accesses. This
creates a problem, because the debugger expects the variable to be
unadjusted. Unfortunately, CodeView doesn't have anything like DWARF
expressions for computing variables that aren't in the program anymore,
so we have to declare 'this' to be the unadjusted value if we want the
debugger to see the right value.
This has the side benefit that, in optimized builds, the 'this' pointer
will usually be available on function entry because it doesn't require
any adjustment.
Reviewers: hans
Subscribers: aprantl, cfe-commits
Differential Revision: https://reviews.llvm.org/D40109
llvm-svn: 318440
2017-11-17 03:09:36 +08:00
|
|
|
// CHECK-SAME: (%struct.ChildOverride* %[[THIS:.*]])
|
2013-08-21 14:25:03 +08:00
|
|
|
//
|
|
|
|
// No need to adjust 'this' as the ChildOverride's layout begins with Left.
|
|
|
|
// CHECK: %[[THIS_ADDR:.*]] = alloca %struct.ChildOverride*, align 4
|
|
|
|
// CHECK: store %struct.ChildOverride* %[[THIS]], %struct.ChildOverride** %[[THIS_ADDR]], align 4
|
|
|
|
|
|
|
|
foo(this);
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[THIS:.*]] = load %struct.ChildOverride*, %struct.ChildOverride** %[[THIS_ADDR]]
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: %[[THIS_i8:.*]] = bitcast %struct.ChildOverride* %[[THIS]] to i8*
|
|
|
|
// CHECK: call void @foo(i8* %[[THIS_i8]])
|
|
|
|
// CHECK: ret
|
|
|
|
}
|
|
|
|
|
|
|
|
void call_left_override(ChildOverride *child) {
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define dso_local void @"?call_left_override
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: %[[CHILD:.*]] = load %struct.ChildOverride
|
|
|
|
|
|
|
|
child->left();
|
|
|
|
// CHECK: %[[VFPTR:.*]] = bitcast %struct.ChildOverride* %[[CHILD]] to void (%struct.ChildOverride*)***
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[VFTABLE:.*]] = load void (%struct.ChildOverride*)**, void (%struct.ChildOverride*)*** %[[VFPTR]]
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK: %[[VFUN:.*]] = getelementptr inbounds void (%struct.ChildOverride*)*, void (%struct.ChildOverride*)** %[[VFTABLE]], i64 0
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[VFUN_VALUE:.*]] = load void (%struct.ChildOverride*)*, void (%struct.ChildOverride*)** %[[VFUN]]
|
2013-08-21 14:25:03 +08:00
|
|
|
//
|
|
|
|
// CHECK: call x86_thiscallcc void %[[VFUN_VALUE]](%struct.ChildOverride* %[[CHILD]])
|
|
|
|
// CHECK: ret
|
|
|
|
}
|
|
|
|
|
|
|
|
void call_right_no_override(ChildNoOverride *child) {
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define dso_local void @"?call_right_no_override
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: %[[CHILD:.*]] = load %struct.ChildNoOverride
|
|
|
|
|
|
|
|
child->right();
|
|
|
|
// When calling a right base's virtual method, one needs to adjust 'this' at
|
|
|
|
// the caller site.
|
|
|
|
//
|
|
|
|
// CHECK: %[[CHILD_i8:.*]] = bitcast %struct.ChildNoOverride* %[[CHILD]] to i8*
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK: %[[RIGHT_i8:.*]] = getelementptr inbounds i8, i8* %[[CHILD_i8]], i32 4
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: %[[RIGHT:.*]] = bitcast i8* %[[RIGHT_i8]] to %struct.Right*
|
|
|
|
//
|
|
|
|
// CHECK: %[[VFPTR:.*]] = bitcast %struct.Right* %[[RIGHT]] to void (%struct.Right*)***
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[VFTABLE:.*]] = load void (%struct.Right*)**, void (%struct.Right*)*** %[[VFPTR]]
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK: %[[VFUN:.*]] = getelementptr inbounds void (%struct.Right*)*, void (%struct.Right*)** %[[VFTABLE]], i64 0
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[VFUN_VALUE:.*]] = load void (%struct.Right*)*, void (%struct.Right*)** %[[VFUN]]
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: call x86_thiscallcc void %[[VFUN_VALUE]](%struct.Right* %[[RIGHT]])
|
|
|
|
// CHECK: ret
|
|
|
|
}
|
|
|
|
|
|
|
|
void ChildOverride::right() {
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define dso_local x86_thiscallcc void @"?right@ChildOverride@@UAEXXZ"(i8*
|
2013-08-21 14:25:03 +08:00
|
|
|
//
|
|
|
|
// ChildOverride::right gets 'this' cast to Right* in ECX (i.e. this+4) so we
|
|
|
|
// need to adjust 'this' before use.
|
|
|
|
//
|
2018-01-23 06:29:24 +08:00
|
|
|
// CHECK: %[[THIS_STORE:.*]] = alloca %struct.ChildOverride*, align 4
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: %[[THIS_ADDR:.*]] = alloca %struct.ChildOverride*, align 4
|
2018-01-23 06:29:24 +08:00
|
|
|
// CHECK: %[[COERCE_VAL:.*]] = bitcast i8* %[[ECX:.*]] to %struct.ChildOverride*
|
|
|
|
// CHECK: store %struct.ChildOverride* %[[COERCE_VAL]], %struct.ChildOverride** %[[THIS_STORE]], align 4
|
|
|
|
// CHECK: %[[THIS_INIT:.*]] = load %struct.ChildOverride*, %struct.ChildOverride** %[[THIS_STORE]], align 4
|
[MS] Apply adjustments after storing 'this'
Summary:
The MS ABI convention is that the 'this' pointer on entry is the address
of the vfptr that was used to make the virtual method call. In other
words, the pointer on entry always points to the base subobject that
introduced the virtual method. Consider this hierarchy:
struct A { virtual void f() = 0; };
struct B { virtual void g() = 0; };
struct C : A, B {
void f() override;
void g() override;
};
On entry to C::g, [ER]CX will contain the address of C's B subobject,
and C::g will have to subtract sizeof(A) to recover a pointer to C.
Before this change, we applied this adjustment in the prologue and
stored the new value into the "this" local variable alloca used for
debug info. However, MSVC does not do this, presumably because it is
often profitable to fold the adjustment into later field accesses. This
creates a problem, because the debugger expects the variable to be
unadjusted. Unfortunately, CodeView doesn't have anything like DWARF
expressions for computing variables that aren't in the program anymore,
so we have to declare 'this' to be the unadjusted value if we want the
debugger to see the right value.
This has the side benefit that, in optimized builds, the 'this' pointer
will usually be available on function entry because it doesn't require
any adjustment.
Reviewers: hans
Subscribers: aprantl, cfe-commits
Differential Revision: https://reviews.llvm.org/D40109
llvm-svn: 318440
2017-11-17 03:09:36 +08:00
|
|
|
// CHECK: store %struct.ChildOverride* %[[THIS_INIT]], %struct.ChildOverride** %[[THIS_ADDR]], align 4
|
|
|
|
// CHECK: %[[THIS_RELOAD:.*]] = load %struct.ChildOverride*, %struct.ChildOverride** %[[THIS_ADDR]]
|
|
|
|
// CHECK: %[[THIS_i8:.*]] = bitcast %struct.ChildOverride* %[[THIS_RELOAD]] to i8*
|
|
|
|
// CHECK: %[[THIS_ADJUSTED:.*]] = getelementptr inbounds i8, i8* %[[THIS_i8]], i32 -4
|
|
|
|
// CHECK: %[[THIS:.*]] = bitcast i8* %[[THIS_ADJUSTED]] to %struct.ChildOverride*
|
2013-08-21 14:25:03 +08:00
|
|
|
|
|
|
|
foo(this);
|
|
|
|
// CHECK: %[[THIS_PARAM:.*]] = bitcast %struct.ChildOverride* %[[THIS]] to i8*
|
|
|
|
// CHECK: call void @foo(i8* %[[THIS_PARAM]])
|
|
|
|
// CHECK: ret
|
|
|
|
}
|
|
|
|
|
|
|
|
void call_right_override(ChildOverride *child) {
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define dso_local void @"?call_right_override
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: %[[CHILD:.*]] = load %struct.ChildOverride
|
|
|
|
|
|
|
|
child->right();
|
|
|
|
// When calling a right child's virtual method, one needs to adjust 'this' at
|
|
|
|
// the caller site.
|
|
|
|
//
|
|
|
|
// CHECK: %[[CHILD_i8:.*]] = bitcast %struct.ChildOverride* %[[CHILD]] to i8*
|
2018-02-06 07:09:13 +08:00
|
|
|
// CHECK: %[[RIGHT:.*]] = getelementptr inbounds i8, i8* %[[CHILD_i8]], i32 4
|
2013-08-21 14:25:03 +08:00
|
|
|
//
|
2018-02-06 07:09:13 +08:00
|
|
|
// CHECK: %[[CHILD_i8:.*]] = bitcast %struct.ChildOverride* %[[CHILD]] to i8*
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK: %[[VFPTR_i8:.*]] = getelementptr inbounds i8, i8* %[[CHILD_i8]], i32 4
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: %[[VFPTR:.*]] = bitcast i8* %[[VFPTR_i8]] to void (i8*)***
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[VFTABLE:.*]] = load void (i8*)**, void (i8*)*** %[[VFPTR]]
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK: %[[VFUN:.*]] = getelementptr inbounds void (i8*)*, void (i8*)** %[[VFTABLE]], i64 0
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[VFUN_VALUE:.*]] = load void (i8*)*, void (i8*)** %[[VFUN]]
|
2013-08-21 14:25:03 +08:00
|
|
|
//
|
|
|
|
// CHECK: call x86_thiscallcc void %[[VFUN_VALUE]](i8* %[[RIGHT]])
|
|
|
|
// CHECK: ret
|
|
|
|
}
|
|
|
|
|
|
|
|
struct GrandchildOverride : ChildOverride {
|
|
|
|
virtual void right();
|
|
|
|
};
|
|
|
|
|
|
|
|
void GrandchildOverride::right() {
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define dso_local x86_thiscallcc void @"?right@GrandchildOverride@@UAEXXZ"(i8*
|
2013-08-21 14:25:03 +08:00
|
|
|
//
|
2018-01-23 06:29:24 +08:00
|
|
|
// CHECK: %[[THIS_STORE:.*]] = alloca %struct.GrandchildOverride*, align 4
|
2013-08-21 14:25:03 +08:00
|
|
|
// CHECK: %[[THIS_ADDR:.*]] = alloca %struct.GrandchildOverride*, align 4
|
2018-01-23 06:29:24 +08:00
|
|
|
// CHECK: %[[COERCE_VAL:.*]] = bitcast i8* %[[ECX:.*]] to %struct.GrandchildOverride*
|
|
|
|
// CHECK: store %struct.GrandchildOverride* %[[COERCE_VAL]], %struct.GrandchildOverride** %[[THIS_STORE]], align 4
|
|
|
|
// CHECK: %[[THIS_INIT:.*]] = load %struct.GrandchildOverride*, %struct.GrandchildOverride** %[[THIS_STORE]], align 4
|
[MS] Apply adjustments after storing 'this'
Summary:
The MS ABI convention is that the 'this' pointer on entry is the address
of the vfptr that was used to make the virtual method call. In other
words, the pointer on entry always points to the base subobject that
introduced the virtual method. Consider this hierarchy:
struct A { virtual void f() = 0; };
struct B { virtual void g() = 0; };
struct C : A, B {
void f() override;
void g() override;
};
On entry to C::g, [ER]CX will contain the address of C's B subobject,
and C::g will have to subtract sizeof(A) to recover a pointer to C.
Before this change, we applied this adjustment in the prologue and
stored the new value into the "this" local variable alloca used for
debug info. However, MSVC does not do this, presumably because it is
often profitable to fold the adjustment into later field accesses. This
creates a problem, because the debugger expects the variable to be
unadjusted. Unfortunately, CodeView doesn't have anything like DWARF
expressions for computing variables that aren't in the program anymore,
so we have to declare 'this' to be the unadjusted value if we want the
debugger to see the right value.
This has the side benefit that, in optimized builds, the 'this' pointer
will usually be available on function entry because it doesn't require
any adjustment.
Reviewers: hans
Subscribers: aprantl, cfe-commits
Differential Revision: https://reviews.llvm.org/D40109
llvm-svn: 318440
2017-11-17 03:09:36 +08:00
|
|
|
// CHECK: store %struct.GrandchildOverride* %[[THIS_INIT]], %struct.GrandchildOverride** %[[THIS_ADDR]], align 4
|
|
|
|
// CHECK: %[[THIS_RELOAD:.*]] = load %struct.GrandchildOverride*, %struct.GrandchildOverride** %[[THIS_ADDR]]
|
|
|
|
// CHECK: %[[THIS_i8:.*]] = bitcast %struct.GrandchildOverride* %[[THIS_RELOAD]] to i8*
|
|
|
|
// CHECK: %[[THIS_ADJUSTED:.*]] = getelementptr inbounds i8, i8* %[[THIS_i8]], i32 -4
|
|
|
|
// CHECK: %[[THIS:.*]] = bitcast i8* %[[THIS_ADJUSTED]] to %struct.GrandchildOverride*
|
2013-08-21 14:25:03 +08:00
|
|
|
|
|
|
|
foo(this);
|
|
|
|
// CHECK: %[[THIS_PARAM:.*]] = bitcast %struct.GrandchildOverride* %[[THIS]] to i8*
|
|
|
|
// CHECK: call void @foo(i8* %[[THIS_PARAM]])
|
|
|
|
// CHECK: ret
|
|
|
|
}
|
|
|
|
|
|
|
|
void call_grandchild_right(GrandchildOverride *obj) {
|
|
|
|
// Just make sure we don't crash.
|
|
|
|
obj->right();
|
|
|
|
}
|
2013-09-27 22:48:01 +08:00
|
|
|
|
|
|
|
void emit_ctors() {
|
|
|
|
Left l;
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define {{.*}} @"??0Left@@QAE@XZ"
|
2013-09-27 22:48:01 +08:00
|
|
|
// CHECK-NOT: getelementptr
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: store i32 (...)** bitcast ({ [1 x i8*] }* @"??_7Left@@6B@" to i32 (...)**)
|
2013-09-27 22:48:01 +08:00
|
|
|
// CHECK: ret
|
|
|
|
|
|
|
|
Right r;
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define {{.*}} @"??0Right@@QAE@XZ"
|
2013-09-27 22:48:01 +08:00
|
|
|
// CHECK-NOT: getelementptr
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: store i32 (...)** bitcast ({ [1 x i8*] }* @"??_7Right@@6B@" to i32 (...)**)
|
2013-09-27 22:48:01 +08:00
|
|
|
// CHECK: ret
|
|
|
|
|
|
|
|
ChildOverride co;
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define {{.*}} @"??0ChildOverride@@QAE@XZ"
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[THIS:.*]] = load %struct.ChildOverride*, %struct.ChildOverride**
|
2014-12-04 05:00:21 +08:00
|
|
|
// CHECK: %[[VFPTR:.*]] = bitcast %struct.ChildOverride* %[[THIS]] to i32 (...)***
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: store i32 (...)** bitcast ({ [1 x i8*] }* @"??_7ChildOverride@@6BLeft@@@" to i32 (...)**), i32 (...)*** %[[VFPTR]]
|
2013-09-27 22:48:01 +08:00
|
|
|
// CHECK: %[[THIS_i8:.*]] = bitcast %struct.ChildOverride* %[[THIS]] to i8*
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK: %[[VFPTR_i8:.*]] = getelementptr inbounds i8, i8* %[[THIS_i8]], i32 4
|
2014-12-04 05:00:21 +08:00
|
|
|
// CHECK: %[[VFPTR:.*]] = bitcast i8* %[[VFPTR_i8]] to i32 (...)***
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: store i32 (...)** bitcast ({ [1 x i8*] }* @"??_7ChildOverride@@6BRight@@@" to i32 (...)**), i32 (...)*** %[[VFPTR]]
|
2013-09-27 22:48:01 +08:00
|
|
|
// CHECK: ret
|
|
|
|
|
|
|
|
GrandchildOverride gc;
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define {{.*}} @"??0GrandchildOverride@@QAE@XZ"
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: %[[THIS:.*]] = load %struct.GrandchildOverride*, %struct.GrandchildOverride**
|
2014-12-04 05:00:21 +08:00
|
|
|
// CHECK: %[[VFPTR:.*]] = bitcast %struct.GrandchildOverride* %[[THIS]] to i32 (...)***
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: store i32 (...)** bitcast ({ [1 x i8*] }* @"??_7GrandchildOverride@@6BLeft@@@" to i32 (...)**), i32 (...)*** %[[VFPTR]]
|
2013-09-27 22:48:01 +08:00
|
|
|
// CHECK: %[[THIS_i8:.*]] = bitcast %struct.GrandchildOverride* %[[THIS]] to i8*
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK: %[[VFPTR_i8:.*]] = getelementptr inbounds i8, i8* %[[THIS_i8]], i32 4
|
2014-12-04 05:00:21 +08:00
|
|
|
// CHECK: %[[VFPTR:.*]] = bitcast i8* %[[VFPTR_i8]] to i32 (...)***
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: store i32 (...)** bitcast ({ [1 x i8*] }* @"??_7GrandchildOverride@@6BRight@@@" to i32 (...)**), i32 (...)*** %[[VFPTR]]
|
2013-09-27 22:48:01 +08:00
|
|
|
// CHECK: ret
|
|
|
|
}
|
2013-10-17 02:24:06 +08:00
|
|
|
|
|
|
|
struct LeftWithNonVirtualDtor {
|
|
|
|
virtual void left();
|
|
|
|
~LeftWithNonVirtualDtor();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct AsymmetricChild : LeftWithNonVirtualDtor, Right {
|
|
|
|
virtual ~AsymmetricChild();
|
|
|
|
};
|
|
|
|
|
|
|
|
void call_asymmetric_child_complete_dtor() {
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-LABEL: define dso_local void @"?call_asymmetric_child_complete_dtor@@YAXXZ"
|
2013-10-17 02:24:06 +08:00
|
|
|
AsymmetricChild obj;
|
2018-10-15 23:43:00 +08:00
|
|
|
// CHECK: call x86_thiscallcc %struct.AsymmetricChild* @"??0AsymmetricChild@@QAE@XZ"(%struct.AsymmetricChild* %[[OBJ:.*]])
|
2013-10-17 02:24:06 +08:00
|
|
|
// CHECK-NOT: getelementptr
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: call x86_thiscallcc void @"??1AsymmetricChild@@UAE@XZ"(%struct.AsymmetricChild* %[[OBJ]])
|
2013-10-17 02:24:06 +08:00
|
|
|
// CHECK: ret
|
|
|
|
}
|