diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 80aace2c801..2242a2bcfb1 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -1724,9 +1724,9 @@ bool IPSCCP::runOnModule(Module &M) { if (F->isDeclaration()) continue; - // If this is a strong or ODR definition of this function, then we can - // propagate information about its result into callsites of it. - if (!F->mayBeOverridden()) + // If this is an exact definition of this function, then we can propagate + // information about its result into callsites of it. + if (F->hasExactDefinition()) Solver.AddTrackedFunction(&*F); // If this function only has direct calls that we can see, we can track its |