Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 1dddf19

Browse files
committed
Remove outdated comment about clang not populating src2dst_offset
Clang has been setting this since r174293 (of 2013 vintage). llvm-svn: 368580
1 parent 821eb09 commit 1dddf19

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)