[llvm-branch-commits] [clang] callee_type metadata for indirect calls (PR #117036)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Apr 22 20:58:35 PDT 2025
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 82f8060383d42a33ef1a2786ca72fe92cbdfa2d8 11c09133406aacae0579f3454cb306c0f316007b --extensions c,cpp,h -- clang/test/CodeGen/call-graph-section-templates.cpp clang/test/CodeGen/call-graph-section-virtual-methods.cpp clang/test/CodeGen/call-graph-section.c clang/test/CodeGen/call-graph-section.cpp clang/lib/CodeGen/CGCall.cpp clang/lib/CodeGen/CodeGenModule.cpp clang/lib/CodeGen/CodeGenModule.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 43cd240557..a28e1700bd 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -2909,7 +2909,7 @@ void CodeGenModule::CreateCalleeTypeMetadataForIcall(const QualType &QT,
getLLVMContext(), {llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
llvm::Type::getInt64Ty(getLLVMContext()), 0)),
TypeIdMD});
- llvm::MDTuple *MDN = llvm::MDNode::get(getLLVMContext(), { TypeTuple });
+ llvm::MDTuple *MDN = llvm::MDNode::get(getLLVMContext(), {TypeTuple});
CB->setMetadata(llvm::LLVMContext::MD_callee_type, MDN);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/117036
More information about the llvm-branch-commits
mailing list