Index: lib/CodeGen/CodeGenFunction.cpp =================================================================== --- lib/CodeGen/CodeGenFunction.cpp +++ lib/CodeGen/CodeGenFunction.cpp @@ -535,7 +535,9 @@ CurFnInfo = &FnInfo; assert(CurFn->isDeclaration() && "Function already has body?"); - if (CGM.getSanitizerBlacklist().isIn(*Fn)) + if (CGM.getSanitizerBlacklist().isIn(*Fn) || + (SanOpts->Vptr && D && + (isa(D) || isa(D)))) SanOpts = &SanitizerOptions::Disabled; // Pass inline keyword to optimizer if it appears explicitly on any