From 0777d1ec062acd4c35c30347ebfbebc8a688fa14 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Fri, 5 Feb 2021 14:02:41 -0800 Subject: [PATCH] Ignore assume like calls by default in hasAddressTaken() Differential Revision: https://reviews.llvm.org/D96179 --- llvm/include/llvm/IR/Function.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/IR/Function.h b/llvm/include/llvm/IR/Function.h index 9659e18..88e2670 100644 --- a/llvm/include/llvm/IR/Function.h +++ b/llvm/include/llvm/IR/Function.h @@ -899,7 +899,7 @@ public: /// bool hasAddressTaken(const User ** = nullptr, bool IgnoreCallbackUses = false, - bool IgnoreAssumeLikeCalls = false, + bool IgnoreAssumeLikeCalls = true, bool IngoreLLVMUsed = false) const; /// isDefTriviallyDead - Return true if it is trivially safe to remove -- 2.7.4