Unbreak kaleidoscope example.

llvm-svn: 332908
This commit is contained in:
Peter Collingbourne 2018-05-21 22:09:45 +00:00
parent f0dc9fa934
commit 7de496f460
1 changed files with 1 additions and 1 deletions

View File

@ -1255,7 +1255,7 @@ int main() {
legacy::PassManager pass;
auto FileType = TargetMachine::CGFT_ObjectFile;
if (TheTargetMachine->addPassesToEmitFile(pass, dest, FileType)) {
if (TheTargetMachine->addPassesToEmitFile(pass, dest, nullptr, FileType)) {
errs() << "TheTargetMachine can't emit a file of this type";
return 1;
}