From 9f0f84f1406aa7211753ff15cbf0202b41f82f15 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Mon, 23 Jan 2023 20:09:09 -0800 Subject: [PATCH] [Attributor][FIX] Replace typo with something more sane --- llvm/lib/Transforms/IPO/AttributorAttributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp index 377f516..40beb7f 100644 --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -11324,7 +11324,7 @@ private: DenseSet getInitialAssumptions(const IRPosition &IRP) { const CallBase &CB = cast(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)); -- 2.7.4