[llvm] 9f0f84f - [Attributor][FIX] Replace typo with something more sane
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 20:35:30 PST 2023
Author: Johannes Doerfert
Date: 2023-01-23T20:32:05-08:00
New Revision: 9f0f84f1406aa7211753ff15cbf0202b41f82f15
URL: https://github.com/llvm/llvm-project/commit/9f0f84f1406aa7211753ff15cbf0202b41f82f15
DIFF: https://github.com/llvm/llvm-project/commit/9f0f84f1406aa7211753ff15cbf0202b41f82f15.diff
LOG: [Attributor][FIX] Replace typo with something more sane
Added:
Modified:
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 377f5160568f2..40beb7fd69809 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -11324,7 +11324,7 @@ struct AAAssumptionInfoCallSite final : AAAssumptionInfoImpl {
DenseSet<StringRef> getInitialAssumptions(const IRPosition &IRP) {
const CallBase &CB = cast<CallBase>(IRP.getAssociatedValue());
auto Assumptions = getAssumptions(CB);
- if (Function *F = IRP.getAssociatedFunction())
+ if (const Function *F = CB.getCaller())
set_union(Assumptions, getAssumptions(*F));
if (Function *F = IRP.getAssociatedFunction())
set_union(Assumptions, getAssumptions(*F));
More information about the llvm-commits
mailing list