================ @@ -1090,7 +1090,8 @@ static bool isStandardNewDelete(const FunctionDecl *FD) { // If the header for operator delete is not included, it's still defined // in an invalid source location. Check to make sure we don't crash. return !L.isValid() || - FD->getASTContext().getSourceManager().isInSystemHeader(L); + (!FD->hasBody() && // FIXME: Still a false alarm after CTU inlining. + FD->getASTContext().getSourceManager().isInSystemHeader(L)); ---------------- steakhal wrote:
This is an excellent question! :D https://github.com/llvm/llvm-project/pull/85224 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits