llvm.org GIT mirror llvm / c895f8c
Fix missing arguments in tutorial In tutorial "8. Kaleidoscope: Compiling to Object Code" a call to TargetMachine->addPassesToEmitFile(pass, dest, FileType) is missing nullptr as its 3rd value. Patch by Sajjad Heydari! Differential revision: https://reviews.llvm.org/D60369 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358267 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 4 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
156156 legacy::PassManager pass;
157157 auto FileType = TargetMachine::CGFT_ObjectFile;
159 if (TargetMachine->addPassesToEmitFile(pass, dest, FileType)) {
159 if (TargetMachine->addPassesToEmitFile(pass, dest, nullptr, FileType)) {
160160 errs() << "TargetMachine can't emit a file of this type";
161161 return 1;
162162 }