1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Unbreak kaleidoscope example.

llvm-svn: 332908
This commit is contained in:
Peter Collingbourne 2018-05-21 22:09:45 +00:00
parent 0f16aa465d
commit e65ecbf202

View File

@ -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;
}