]> granicus.if.org Git - clang/commitdiff
Reword comment.
authorNico Weber <nicolasweber@gmx.de>
Mon, 26 Jan 2015 03:03:49 +0000 (03:03 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 26 Jan 2015 03:03:49 +0000 (03:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227069 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/apple-kext-indirect-call.cpp
test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp

index 82822d4142a859739e9b16dfce3a760f99a7ee22..2717a9d61bc2b8753223ab05affe8752b072cfe8 100644 (file)
@@ -28,10 +28,9 @@ struct SubTempl : public Templ<T> {
 
 void f(SubTempl<int>* 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<int>'s vtable, so that needs to be defined in this TU,
-  // which in turn means that Templ<int>::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<int>'s vtable.  Hence, Templ<int>::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.)
index 635878e1605a0b0c80046dc38311b738a0859dc8..e5d85c1eab36c84fadef338ca07049faf3db1f9c 100644 (file)
@@ -33,10 +33,9 @@ struct SubTempl : public Templ<T> {
 
 void f(SubTempl<int>* 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<int>'s vtable, so that needs to be defined in this TU,
-  // which in turn means that Templ<int>::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<int>'s vtable.  Hence, Templ<int>::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.)