Skip to content

Commit 4a7874a

Browse files
author
d0k
committed
Remove outdated comment about clang not populating src2dst_offset
Clang has been setting this since r174293 (of 2013 vintage). git-svn-id: http://llvm.org/svn/llvm-project/libcxxabi/trunk@368580 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent f4a4086 commit 4a7874a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/private_typeinfo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,6 @@ __dynamic_cast(const void *static_ptr, const __class_type_info *static_type,
618618
const __class_type_info *dst_type,
619619
std::ptrdiff_t src2dst_offset) {
620620
// Possible future optimization: Take advantage of src2dst_offset
621-
// Currently clang always sets src2dst_offset to -1 (no hint).
622621

623622
// Get (dynamic_ptr, dynamic_type) from static_ptr
624623
void **vtable = *static_cast<void ** const *>(static_ptr);

0 commit comments

Comments
 (0)