Skip to content

Commit 28cd5c1

Browse files
d0kliujinye-sys
authored andcommitted
Remove outdated comment about clang not populating src2dst_offset
Clang has been setting this since r174293 (of 2013 vintage). llvm-svn: 368580
1 parent 2abe074 commit 28cd5c1

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)