Unbreak the clang build by applying the same temporary

workaround for machine code emitter changes as was used
in llvm-gcc.

llvm-svn: 72657
This commit is contained in:
Duncan Sands 2009-05-31 04:09:57 +00:00
parent 4a7b49b56a
commit 6674a492c4
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}