From 30025116dee1080a44472b1f07d552150ab658b5 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 1 Feb 2012 21:12:07 +0000 Subject: [PATCH] Changed a TODO to a 'maybe some time in the future'. llvm-svn: 149539 --- libcxxabi/src/private_typeinfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcxxabi/src/private_typeinfo.cpp b/libcxxabi/src/private_typeinfo.cpp index 8fcd34c4bcf7..0469502312d8 100644 --- a/libcxxabi/src/private_typeinfo.cpp +++ b/libcxxabi/src/private_typeinfo.cpp @@ -402,7 +402,8 @@ __dynamic_cast(const void* static_ptr, 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;