summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2018-05-21 22:09:45 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2018-05-21 22:09:45 +0000
commit7de496f4605d5f5d05b555ee17a2321b6a8ae2cf (patch)
treedbc1ff9d1c7ab8cd411c07917a01808da1385308
parentf0dc9fa934fa145523636930e77dd7c15db3ecb1 (diff)
downloadbcm5719-llvm-7de496f4605d5f5d05b555ee17a2321b6a8ae2cf.tar.gz
bcm5719-llvm-7de496f4605d5f5d05b555ee17a2321b6a8ae2cf.zip
Unbreak kaleidoscope example.
llvm-svn: 332908
-rw-r--r--llvm/examples/Kaleidoscope/Chapter8/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
index d5aa9ba36b4..9f17d51993a 100644
--- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
@@ -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;
}
OpenPOWER on IntegriCloud