[libcxx-commits] [libcxxabi] r368580 - Remove outdated comment about clang not populating src2dst_offset

Benjamin Kramer via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 12 07:33:47 PDT 2019


Author: d0k
Date: Mon Aug 12 07:33:46 2019
New Revision: 368580

URL: http://llvm.org/viewvc/llvm-project?rev=368580&view=rev
Log:
Remove outdated comment about clang not populating src2dst_offset

Clang has been setting this since r174293 (of 2013 vintage).

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=368580&r1=368579&r2=368580&view=diff
==============================================================================
--- libcxxabi/trunk/src/private_typeinfo.cpp (original)
+++ libcxxabi/trunk/src/private_typeinfo.cpp Mon Aug 12 07:33:46 2019
@@ -618,7 +618,6 @@ __dynamic_cast(const void *static_ptr, c
                const __class_type_info *dst_type,
                std::ptrdiff_t 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 = *static_cast<void ** const *>(static_ptr);




More information about the libcxx-commits mailing list