From e8e8bfeeb7233bde17d0a811b87d392271b33f42 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 22 Dec 2021 09:42:55 +0100 Subject: [PATCH] [DataFlowSanitizer] Simplify attribute removal (NFC) We're only removing a single attribute, so there is no need to go through AttrBuilder. --- llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index 9eedd9f..9f26b37 100644 --- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -1121,7 +1121,7 @@ DataFlowSanitizer::buildWrapperFunction(Function *F, StringRef NewFName, BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", NewF); if (F->isVarArg()) { - NewF->removeFnAttrs(AttrBuilder().addAttribute("split-stack")); + NewF->removeFnAttr("split-stack"); CallInst::Create(DFSanVarargWrapperFn, IRBuilder<>(BB).CreateGlobalStringPtr(F->getName()), "", BB); -- 2.7.4