From 0577549e3a1f6359a2195ee8104b1a744bf00d23 Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Tue, 18 Apr 2023 15:38:14 +0800 Subject: [PATCH] [OHOS][Backward CFI] Fix llvmts failures on x86_64 Issue: #I6VORC Test: llvmts Signed-off-by: arvinzzz Change-Id: Ib2a5a5fada1bafb5ad2ea8ca0f7a9374291dbf22 --- clang/lib/CodeGen/CGCall.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 996fe6c1bd20..3848f10a6789 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"); -- Gitee