[llvm] [CallPromotionUtil] See through function alias when devirtualizing a virtual call on an alloca. (PR #80736)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 15:58:02 PST 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 15fdc7646ca24506ccb6a59861da8f3b52ab031c 4888c5b4e1d959405112e495df2282845efbc690 -- llvm/include/llvm/Analysis/TypeMetadataUtils.h llvm/lib/Analysis/TypeMetadataUtils.cpp llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/TypeMetadataUtils.cpp b/llvm/lib/Analysis/TypeMetadataUtils.cpp
index a50eca1ffb..b8dcc39e92 100644
--- a/llvm/lib/Analysis/TypeMetadataUtils.cpp
+++ b/llvm/lib/Analysis/TypeMetadataUtils.cpp
@@ -216,7 +216,7 @@ llvm::getFunctionAtVTableOffset(GlobalVariable *GV, uint64_t Offset,
Fn = dyn_cast<Function>(A->getAliasee());
if (!Fn)
- return std::pair<Function*, Constant*>(nullptr, nullptr);
+ return std::pair<Function *, Constant *>(nullptr, nullptr);
return std::pair<Function *, Constant *>(Fn, C);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/80736
More information about the llvm-commits
mailing list