diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index ea7da8c5ce75..711184b5b7b3 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1622,7 +1622,7 @@ CodeGenModule::GetOrCreateLLVMFunction(StringRef MangledName, } else if (D && cast(D) ->getCorrespondingUnsizedGlobalDeallocationFunction() && - !getLangOpts().DefaultSizedDelete && + getLangOpts().DefaultSizedDelete && !D->hasAttr()) { addDeferredDeclToEmit(F, GD);