diff --git a/clang/lib/Frontend/Backend.cpp b/clang/lib/Frontend/Backend.cpp index 259713f25749..44aa3a81a96e 100644 --- a/clang/lib/Frontend/Backend.cpp +++ b/clang/lib/Frontend/Backend.cpp @@ -250,7 +250,8 @@ bool BackendConsumer::AddEmitPasses(std::string &Error) { break; } - if (TM->addPassesToEmitFileFinish(*CodeGenPasses, 0, OptLevel)) { + if (TM->addPassesToEmitFileFinish(*CodeGenPasses, (MachineCodeEmitter *)0, + OptLevel)) { Error = "Unable to interface with target machine!\n"; return false; }