aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2008-09-29 14:40:32 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2008-09-29 14:40:32 +0000
commit5ed3b894c913b0d4f4a0f3bd47f3ea1adf6eb52e (patch)
tree89e104351834dec0822fe0f9d61fdfeac6276640 /lib
parent224c86ee77c87cb90899041f4ee9027ac79d4fd2 (diff)
remove redundant test (mayBeOverriden() includes hasLinkOnceLinkage)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/IPO/IPConstantPropagation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/IPConstantPropagation.cpp b/lib/Transforms/IPO/IPConstantPropagation.cpp
index 66fc2e33ea..1d65562f58 100644
--- a/lib/Transforms/IPO/IPConstantPropagation.cpp
+++ b/lib/Transforms/IPO/IPConstantPropagation.cpp
@@ -155,7 +155,7 @@ bool IPCP::PropagateConstantReturn(Function &F) {
// 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.