llvm.org GIT mirror llvm / 8cc89d0
Unbreak kaleidoscope example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332908 91177308-0d34-0410-b5e6-96231b3b80d8 Peter Collingbourne 1 year, 1 month ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
12541254 legacy::PassManager pass;
12551255 auto FileType = TargetMachine::CGFT_ObjectFile;
12561256
1257 if (TheTargetMachine->addPassesToEmitFile(pass, dest, FileType)) {
1257 if (TheTargetMachine->addPassesToEmitFile(pass, dest, nullptr, FileType)) {
12581258 errs() << "TheTargetMachine can't emit a file of this type";
12591259 return 1;
12601260 }