diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 996fe6c1bd2062982f133dbcdb6f3ebf0172ee15..3848f10a6789f95090f406d6f0ff6bec7cf16a84 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -1866,8 +1866,7 @@ void CodeGenModule::getDefaultFunctionAttributes(StringRef Name, FuncAttrs.addAttribute("use-soft-float", "true"); FuncAttrs.addAttribute("stack-protector-buffer-size", llvm::utostr(CodeGenOpts.SSPBufferSize)); - FuncAttrs.addAttribute("stack-protector-ret-cookie-size", - llvm::utostr(CodeGenOpts.SSPRetCookieSize)); // OHOS_LOCAL + if (LangOpts.NoSignedZero) FuncAttrs.addAttribute("no-signed-zeros-fp-math", "true");