Ignore assume like calls by default in hasAddressTaken()
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 5 Feb 2021 22:02:41 +0000 (14:02 -0800)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 16 Apr 2021 16:37:33 +0000 (09:37 -0700)
Differential Revision: https://reviews.llvm.org/D96179

llvm/include/llvm/IR/Function.h

index 9659e18..88e2670 100644 (file)
@@ -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