From 0a16c228463ca58c7828b5fd9bdd10b3ba612bbf Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 11 Aug 2016 21:15:00 +0000 Subject: Use range algorithms instead of unpacking begin/end No functionality change is intended. llvm-svn: 278417 --- llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp') diff --git a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp index c9ac2bdb794..e457f1c00f4 100644 --- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp +++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp @@ -232,13 +232,13 @@ bool llvm::moduleCanBeRenamedForThinLTO(const Module &M) { SmallPtrSet Used; collectUsedGlobalVariables(M, Used, /*CompilerUsed*/ false); bool LocalIsUsed = - llvm::any_of(Used, [](GlobalValue *V) { return V->hasLocalLinkage(); }); + any_of(Used, [](GlobalValue *V) { return V->hasLocalLinkage(); }); if (!LocalIsUsed) return true; // Walk all the instructions in the module and find if one is inline ASM - auto HasInlineAsm = llvm::any_of(M, [](const Function &F) { - return llvm::any_of(instructions(F), [](const Instruction &I) { + auto HasInlineAsm = any_of(M, [](const Function &F) { + return any_of(instructions(F), [](const Instruction &I) { const CallInst *CallI = dyn_cast(&I); if (!CallI) return false; -- cgit v1.2.3