[clang] [Clang]Emit type metadata when -fprofile-generate is on (PR #70841)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 31 11:05:49 PDT 2023
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 a9b3f200159595ed8f13cc891ae34291020ba111 99abebc88c09346bd4a70bbf39df13b249116c09 -- clang/lib/CodeGen/CGVTables.cpp clang/lib/CodeGen/MicrosoftCXXABI.cpp clang/test/CodeGenCXX/type-metadata.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/MicrosoftCXXABI.cpp b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
index 740c0b6cb1aa..f1e68e889cc1 100644
--- a/clang/lib/CodeGen/MicrosoftCXXABI.cpp
+++ b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
@@ -4450,9 +4450,7 @@ void MicrosoftCXXABI::emitThrow(CodeGenFunction &CGF, const CXXThrowExpr *E) {
// Call into the runtime to throw the exception.
llvm::Value *Args[] = {
- CGF.Builder.CreateBitCast(AI.getPointer(), CGM.Int8PtrTy),
- TI
- };
+ CGF.Builder.CreateBitCast(AI.getPointer(), CGM.Int8PtrTy), TI};
CGF.EmitNoreturnRuntimeCallOrInvoke(getThrowFn(), Args);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/70841
More information about the cfe-commits
mailing list