[PATCH] D25448: [ubsan] Use the object pointer's type info for devirtualized calls

John McCall via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 17 21:51:43 PDT 2016


rjmccall added inline comments.


================
Comment at: lib/CodeGen/CGExprCXX.cpp:31
+    CallArgList &Args, CallArgList *RtlArgs,
+    llvm::Optional<QualType> DevirtualizedClassTy) {
   assert(CE == nullptr || isa<CXXMemberCallExpr>(CE) ||
----------------
Shouldn't MD just be the devirtualized method?  That should avoid the need to pass down something different for the devirt case here.


https://reviews.llvm.org/D25448





More information about the cfe-commits mailing list