[PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).
Evgeniy Stepanov via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 2 14:45:52 PST 2016
eugenis added inline comments.
================
Comment at: lib/CodeGen/CGExpr.cpp:2494
@@ +2493,3 @@
+ llvm::Value *ValidVtable = nullptr;
+ if (CheckAndAppendValidVtable) {
+ llvm::Value *AllVtables = llvm::MetadataAsValue::get(
----------------
samsonov wrote:
> This is really ugly. Why are you not passing it down in DynamicArgs? Is it performance penalty you don't want to pay if the check will not succeed? How large will it be?
Yes, I want this code to be on the failing side of the check.
This would cost about the same as the check itself, so I suspect it could double the overhead.
Repository:
rL LLVM
http://reviews.llvm.org/D16823
More information about the cfe-commits
mailing list