Skip to content

Commit

Permalink
Unbreak kaleidoscope example.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332908 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
pcc committed May 21, 2018
1 parent 6e0e075 commit 8cc89d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/Kaleidoscope/Chapter8/toy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8cc89d0

Please sign in to comment.