commit | d7469cb558572ec2552b38af8c8249ccb04c2f66 | [log] [tgz] |
---|---|---|
author | Nuno Lopes <nunoplopes@sapo.pt> | Mon Sep 29 14:40:32 2008 +0000 |
committer | Nuno Lopes <nunoplopes@sapo.pt> | Mon Sep 29 14:40:32 2008 +0000 |
tree | 89e104351834dec0822fe0f9d61fdfeac6276640 | |
parent | 120f8f9aec270a551f4de031f884bd30aeea4f00 [diff] |
remove redundant test (mayBeOverriden() includes hasLinkOnceLinkage) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56786 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/IPO/IPConstantPropagation.cpp b/lib/Transforms/IPO/IPConstantPropagation.cpp index 66fc2e3..1d65562 100644 --- a/lib/Transforms/IPO/IPConstantPropagation.cpp +++ b/lib/Transforms/IPO/IPConstantPropagation.cpp
@@ -155,7 +155,7 @@ // If this function could be overridden later in the link stage, we can't // propagate information about its results into callers. - if (F.hasLinkOnceLinkage() || F.mayBeOverridden()) + if (F.mayBeOverridden()) return false; // Check to see if this function returns a constant.