github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. 
:warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions c,cpp,h -- 
clang/lib/CodeGen/CGCUDANV.cpp 
clang/test/CodeGen/cfi-icall-trap-recover-runtime.c 
clang/test/CodeGen/lto-newpm-pipeline.c 
clang/test/CodeGenCXX/cfi-vcall-trap-recover-runtime.cpp 
llvm/include/llvm/Analysis/CtxProfAnalysis.h 
llvm/include/llvm/Bitcode/BitcodeReader.h 
llvm/include/llvm/Bitcode/LLVMBitCodes.h llvm/include/llvm/IR/GlobalObject.h 
llvm/include/llvm/IR/GlobalValue.h llvm/include/llvm/IR/Module.h 
llvm/include/llvm/IR/ModuleSummaryIndex.h llvm/include/llvm/LTO/LTO.h 
llvm/lib/Analysis/CtxProfAnalysis.cpp llvm/lib/AsmParser/LLParser.cpp 
llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp 
llvm/lib/Bitcode/Reader/BitcodeReader.cpp 
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp llvm/lib/CodeGen/GlobalMerge.cpp 
llvm/lib/IR/Globals.cpp llvm/lib/LTO/LTO.cpp llvm/lib/LTO/LTOBackend.cpp 
llvm/lib/Passes/PassBuilder.cpp llvm/lib/Passes/PassBuilderPipelines.cpp 
llvm/lib/Transforms/IPO/ConstantMerge.cpp 
llvm/lib/Transforms/IPO/FunctionImport.cpp 
llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp 
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp 
llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp 
llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp 
llvm/lib/Transforms/Scalar/JumpTableToSwitch.cpp 
llvm/lib/Transforms/Utils/CallPromotionUtils.cpp 
llvm/lib/Transforms/Utils/CloneModule.cpp 
llvm/lib/Transforms/Utils/FunctionImportUtils.cpp 
llvm/lib/Transforms/Utils/InlineFunction.cpp llvm/tools/llvm-link/llvm-link.cpp 
llvm/tools/opt/NewPMDriver.cpp llvm/tools/opt/optdriver.cpp 
--diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/IR/Module.h b/llvm/include/llvm/IR/Module.h
index 2032c0ceb..f289eb7d6 100644
--- a/llvm/include/llvm/IR/Module.h
+++ b/llvm/include/llvm/IR/Module.h
@@ -579,9 +579,9 @@ public:
   // Use globals() to get the range of all global variables.
 
 private:
-/// @}
-/// @name Direct access to the globals list, functions list, and symbol table
-/// @{
+  /// @}
+  /// @name Direct access to the globals list, functions list, and symbol table
+  /// @{
 
   /// Get the Module's list of global variables (constant).
   const GlobalListType   &getGlobalList() const       { return GlobalList; }
diff --git a/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp 
b/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
index 1bfeea3b7..a7131b647 100644
--- a/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
+++ b/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
@@ -676,7 +676,6 @@ CallBase *llvm::promoteCallWithIfThenElse(CallBase &CB, 
Function &Callee,
     // times, and the indirect BB, IndirectCount times
     Ctx.counters()[DirectID] = DirectCount;
     Ctx.counters()[IndirectID] = IndirectCount;
-
   };
   CtxProf.update(ProfileUpdater, Caller);
   return &DirectCall;

``````````

</details>


https://github.com/llvm/llvm-project/pull/201194
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to