[llvm] 0777d1e - Ignore assume like calls by default in hasAddressTaken()

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 16 09:38:01 PDT 2021


Author: Stanislav Mekhanoshin
Date: 2021-04-16T09:37:33-07:00
New Revision: 0777d1ec062acd4c35c30347ebfbebc8a688fa14

URL: https://github.com/llvm/llvm-project/commit/0777d1ec062acd4c35c30347ebfbebc8a688fa14
DIFF: https://github.com/llvm/llvm-project/commit/0777d1ec062acd4c35c30347ebfbebc8a688fa14.diff

LOG: Ignore assume like calls by default in hasAddressTaken()

Differential Revision: https://reviews.llvm.org/D96179

Added: 
    

Modified: 
    llvm/include/llvm/IR/Function.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Function.h b/llvm/include/llvm/IR/Function.h
index 9659e1865180..88e26705e965 100644
--- a/llvm/include/llvm/IR/Function.h
+++ b/llvm/include/llvm/IR/Function.h
@@ -899,7 +899,7 @@ class Function : public GlobalObject, public ilist_node<Function> {
   ///
   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


        


More information about the llvm-commits mailing list