diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-02-01 21:12:07 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-02-01 21:12:07 +0000 |
commit | 30025116dee1080a44472b1f07d552150ab658b5 (patch) | |
tree | c86bd893138acc552f14d4f6d35938e841cf5c0d | |
parent | 8030b7f7510e5246b31e6273012582667990d8ab (diff) | |
download | bcm5719-llvm-30025116dee1080a44472b1f07d552150ab658b5.tar.gz bcm5719-llvm-30025116dee1080a44472b1f07d552150ab658b5.zip |
Changed a TODO to a 'maybe some time in the future'.
llvm-svn: 149539
-rw-r--r-- | libcxxabi/src/private_typeinfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxxabi/src/private_typeinfo.cpp b/libcxxabi/src/private_typeinfo.cpp index 8fcd34c4bcf..0469502312d 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; |