From: Nico Weber Date: Mon, 26 Jan 2015 03:03:49 +0000 (+0000) Subject: Reword comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d925ba58a19b117b69e91fe0a228844085145e31;p=clang Reword comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227069 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/apple-kext-indirect-call.cpp b/test/CodeGenCXX/apple-kext-indirect-call.cpp index 82822d4142..2717a9d61b 100644 --- a/test/CodeGenCXX/apple-kext-indirect-call.cpp +++ b/test/CodeGenCXX/apple-kext-indirect-call.cpp @@ -28,10 +28,9 @@ struct SubTempl : public Templ { void f(SubTempl* t) { // Qualified calls go through the (qualified) vtable in apple-kext mode. - // Since t's this pointer points to SubTempl's vtable, this call needs - // to load Templ's vtable, so that needs to be defined in this TU, - // which in turn means that Templ::g needs to be instantiated in this TU, - // for it's referenced by the vtable. + // Since t's this pointer points to SubTempl's vtable, the call needs + // to load Templ's vtable. Hence, Templ::g needs to be + // instantiated in this TU, for it's referenced by the vtable. // (This happens only in apple-kext mode; elsewhere virtual calls can always // use the vtable pointer off this instead of having to load the vtable // symbol.) diff --git a/test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp b/test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp index 635878e160..e5d85c1eab 100644 --- a/test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp +++ b/test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp @@ -33,10 +33,9 @@ struct SubTempl : public Templ { void f(SubTempl* t) { // Qualified calls go through the (qualified) vtable in apple-kext mode. - // Since t's this pointer points to SubTempl's vtable, this call needs - // to load Templ's vtable, so that needs to be defined in this TU, - // which in turn means that Templ::g needs to be instantiated in this TU, - // for it's referenced by the vtable. + // Since t's this pointer points to SubTempl's vtable, the call needs + // to load Templ's vtable. Hence, Templ::g needs to be + // instantiated in this TU, for it's referenced by the vtable. // (This happens only in apple-kext mode; elsewhere virtual calls can always // use the vtable pointer off this instead of having to load the vtable // symbol.)