From 5a3b980ac2b255fcbb006f820218d4935f98e271 Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Fri, 27 Oct 2017 18:45:06 +0000 Subject: [PATCH] Replace a few usages of llvm::join with range-version[NFC] I noticed a few usages of llvm::join that were using begin/end rather than just the range version. This patch just replaces those. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316784 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGCall.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index c19fb097f6..971455a873 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -1742,7 +1742,7 @@ void CodeGenModule::ConstructDefaultFnAttrList(StringRef Name, bool HasOptnone, std::vector &Recips = getTarget().getTargetOpts().Reciprocals; if (!Recips.empty()) FuncAttrs.addAttribute("reciprocal-estimates", - llvm::join(Recips.begin(), Recips.end(), ",")); + llvm::join(Recips, ",")); if (CodeGenOpts.StackRealignment) FuncAttrs.addAttribute("stackrealign"); @@ -1894,7 +1894,7 @@ void CodeGenModule::ConstructAttributeList( std::sort(Features.begin(), Features.end()); FuncAttrs.addAttribute( "target-features", - llvm::join(Features.begin(), Features.end(), ",")); + llvm::join(Features, ",")); } } else { // Otherwise just add the existing target cpu and target features to the @@ -1906,7 +1906,7 @@ void CodeGenModule::ConstructAttributeList( std::sort(Features.begin(), Features.end()); FuncAttrs.addAttribute( "target-features", - llvm::join(Features.begin(), Features.end(), ",")); + llvm::join(Features, ",")); } } } -- 2.40.0