[llvm] r332908 - Unbreak kaleidoscope example.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon May 21 15:09:45 PDT 2018


Author: pcc
Date: Mon May 21 15:09:45 2018
New Revision: 332908

URL: http://llvm.org/viewvc/llvm-project?rev=332908&view=rev
Log:
Unbreak kaleidoscope example.

Modified:
    llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp

Modified: llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp?rev=332908&r1=332907&r2=332908&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp (original)
+++ llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp Mon May 21 15:09:45 2018
@@ -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;
   }




More information about the llvm-commits mailing list