[PATCH] D25448: [ubsan] Disable -fsanitize=vptr checks for devirtualized calls
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 13 10:52:54 PDT 2016
rjmccall requested changes to this revision.
rjmccall added inline comments.
This revision now requires changes to proceed.
================
Comment at: lib/CodeGen/CodeGenFunction.h:379
+ /// Set of object pointers which are blacklisted from the UB sanitizer.
+ llvm::SmallPtrSet<llvm::Value *, 1> SanitizerBasePointerBlacklist;
+
----------------
Please find some way to do this that doesn't require adding new tracking state like this. It should be quite easy to pass down that a call was devirtualized.
https://reviews.llvm.org/D25448
More information about the cfe-commits
mailing list