Fix warning; be explicit about overriding the overload.

This commit is contained in:
Axel Naumann 2014-03-28 16:06:36 +01:00 committed by sftnight
parent 358764f8c0
commit ac4aaa3c76

View File

@ -46,7 +46,8 @@ namespace {
InlinerKeepDeadFunc(Pass* I):
CallGraphSCCPass(ID), m_Inliner((Inliner*)I) { }
bool doInitialization(CallGraph &CG) {
using llvm::Pass::doInitialization;
bool doInitialization(CallGraph &CG) override {
// Forward out Resolver now that we are registered.
if (!m_Inliner->getResolver())
m_Inliner->setResolver(getResolver());