[cfe-commits] [libcxxabi] r149539 - /libcxxabi/trunk/src/private_typeinfo.cpp

Howard Hinnant hhinnant at apple.com
Wed Feb 1 13:12:07 PST 2012


Author: hhinnant
Date: Wed Feb  1 15:12:07 2012
New Revision: 149539

URL: http://llvm.org/viewvc/llvm-project?rev=149539&view=rev
Log:
Changed a TODO to a 'maybe some time in the future'.

Modified:
    libcxxabi/trunk/src/private_typeinfo.cpp

Modified: libcxxabi/trunk/src/private_typeinfo.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/private_typeinfo.cpp?rev=149539&r1=149538&r2=149539&view=diff
==============================================================================
--- libcxxabi/trunk/src/private_typeinfo.cpp (original)
+++ libcxxabi/trunk/src/private_typeinfo.cpp Wed Feb  1 15:12:07 2012
@@ -402,7 +402,8 @@
 			   const __class_type_info* dst_type,
 			   std::ptrdiff_t src2dst_offset)
 {
-    // TODO:  Take advantage of src2dst_offset
+    // Possible future optimization:  Take advantage of src2dst_offset
+    // Currently clang always sets src2dst_offset to -1 (no hint).
 
     // Get (dynamic_ptr, dynamic_type) from static_ptr
     void** vtable = *(void***)static_ptr;





More information about the cfe-commits mailing list