================ @@ -1112,6 +1150,11 @@ bool DevirtModule::tryFindVirtualCallTargets( // calls to pure virtuals are UB. if (Fn->getName() == "__cxa_pure_virtual") continue; + // In Most cases empty functions will be overridden by the + // implementation of the derived class, so we can skip them. + if (DevirtCheckMode == WPDCheckMode::Fallback && + Fn->getReturnType()->isVoidTy() && Fn->getInstructionCount() <= 1) ---------------- hassnaaHamdi wrote:
refactored https://github.com/llvm/llvm-project/pull/145031 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits