fix -mllvm command line option regression

master
Andrew Kelley 2019-03-07 16:08:25 -05:00
parent bbbcf16ef9
commit 46242c4d38
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
1 changed files with 1 additions and 1 deletions

View File

@ -1032,7 +1032,7 @@ int main(int argc, char **argv) {
if (llvm_argv.length > 1) {
llvm_argv.append(nullptr);
ZigLLVMParseCommandLineOptions(llvm_argv.length, llvm_argv.items);
ZigLLVMParseCommandLineOptions(llvm_argv.length - 1, llvm_argv.items);
}
codegen_set_llvm_argv(g, llvm_argv.items + 1, llvm_argv.length - 2);