[llvm] 9111920 - [ModuleInliner] clang-format ModuleInliner.cpp (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 16 09:41:51 PDT 2022


Author: Kazu Hirata
Date: 2022-09-16T09:41:42-07:00
New Revision: 9111920af8b28ccbe462791e5129942416d9c882

URL: https://github.com/llvm/llvm-project/commit/9111920af8b28ccbe462791e5129942416d9c882
DIFF: https://github.com/llvm/llvm-project/commit/9111920af8b28ccbe462791e5129942416d9c882.diff

LOG: [ModuleInliner] clang-format ModuleInliner.cpp (NFC)

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/ModuleInliner.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/ModuleInliner.cpp b/llvm/lib/Transforms/IPO/ModuleInliner.cpp
index b86a5ef6fef7..ac9b2eca6661 100644
--- a/llvm/lib/Transforms/IPO/ModuleInliner.cpp
+++ b/llvm/lib/Transforms/IPO/ModuleInliner.cpp
@@ -91,8 +91,7 @@ InlineAdvisor &ModuleInlinerPass::getAdvisor(const ModuleAnalysisManager &MAM,
     // would get from the MAM can be invalidated as a result of the inliner's
     // activity.
     OwnedAdvisor = std::make_unique<DefaultInlineAdvisor>(
-        M, FAM, Params,
-        InlineContext{LTOPhase, InlinePass::ModuleInliner});
+        M, FAM, Params, InlineContext{LTOPhase, InlinePass::ModuleInliner});
 
     return *OwnedAdvisor;
   }
@@ -117,9 +116,8 @@ PreservedAnalyses ModuleInlinerPass::run(Module &M,
   LLVM_DEBUG(dbgs() << "---- Module Inliner is Running ---- \n");
 
   auto &IAA = MAM.getResult<InlineAdvisorAnalysis>(M);
-  if (!IAA.tryCreate(
-          Params, Mode, {},
-          InlineContext{LTOPhase, InlinePass::ModuleInliner})) {
+  if (!IAA.tryCreate(Params, Mode, {},
+                     InlineContext{LTOPhase, InlinePass::ModuleInliner})) {
     M.getContext().emitError(
         "Could not setup Inlining Advisor for the requested "
         "mode and/or options");


        


More information about the llvm-commits mailing list