[clang] [DebugInfo][RemoveDIs] Use iterator-inserters in clang (PR #102006)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 08:50:28 PDT 2024
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 26ca7820ebe06369227efaa282fb2ac96c5aa74a cf967317327aa3971da62a15f357ee5b29268f14 --extensions h,cpp -- clang/lib/CodeGen/CGCUDANV.cpp clang/lib/CodeGen/CGCall.cpp clang/lib/CodeGen/CGCleanup.cpp clang/lib/CodeGen/CGCoroutine.cpp clang/lib/CodeGen/CGExpr.cpp clang/lib/CodeGen/CGObjC.cpp clang/lib/CodeGen/CGStmt.cpp clang/lib/CodeGen/CodeGenFunction.h clang/lib/CodeGen/CodeGenModule.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index ba0632de31..9e7d3db270 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -300,9 +300,10 @@ static void createStoreInstBefore(llvm::Value *value, Address addr,
store->setAlignment(addr.getAlignment().getAsAlign());
}
-static llvm::LoadInst *createLoadInstBefore(Address addr, const Twine &name,
- llvm::BasicBlock::iterator beforeInst,
- CodeGenFunction &CGF) {
+static llvm::LoadInst *
+createLoadInstBefore(Address addr, const Twine &name,
+ llvm::BasicBlock::iterator beforeInst,
+ CodeGenFunction &CGF) {
return new llvm::LoadInst(addr.getElementType(), addr.emitRawPointer(CGF),
name, false, addr.getAlignment().getAsAlign(),
beforeInst);
``````````
</details>
https://github.com/llvm/llvm-project/pull/102006
More information about the cfe-commits
mailing list