@@ -192,7 +192,7 @@ Expected<int> LLI::ExecuteProgram(const std::string &Bitcode,
192
192
outs () << " <lli>" ;
193
193
outs ().flush ();
194
194
LLVM_DEBUG (errs () << " \n About to run:\t " ;
195
- for (unsigned i = 0 , e = LLIArgs.size () - 1 ; i != e; ++i) errs ()
195
+ for (unsigned i = 0 , e = LLIArgs.size (); i != e; ++i) errs ()
196
196
<< " " << LLIArgs[i];
197
197
errs () << " \n " ;);
198
198
return RunProgramWithTimeout (LLIPath, LLIArgs, InputFile, OutputFile,
@@ -460,7 +460,7 @@ Expected<CC::FileType> LLC::OutputCode(const std::string &Bitcode,
460
460
outs () << (UseIntegratedAssembler ? " <llc-ia>" : " <llc>" );
461
461
outs ().flush ();
462
462
LLVM_DEBUG (errs () << " \n About to run:\t " ;
463
- for (unsigned i = 0 , e = LLCArgs.size () - 1 ; i != e; ++i) errs ()
463
+ for (unsigned i = 0 , e = LLCArgs.size (); i != e; ++i) errs ()
464
464
<< " " << LLCArgs[i];
465
465
errs () << " \n " ;);
466
466
if (RunProgramWithTimeout (LLCPath, LLCArgs, " " , " " , " " , Timeout, MemoryLimit))
@@ -578,7 +578,7 @@ Expected<int> JIT::ExecuteProgram(const std::string &Bitcode,
578
578
outs () << " <jit>" ;
579
579
outs ().flush ();
580
580
LLVM_DEBUG (errs () << " \n About to run:\t " ;
581
- for (unsigned i = 0 , e = JITArgs.size () - 1 ; i != e; ++i) errs ()
581
+ for (unsigned i = 0 , e = JITArgs.size (); i != e; ++i) errs ()
582
582
<< " " << JITArgs[i];
583
583
errs () << " \n " ;);
584
584
LLVM_DEBUG (errs () << " \n Sending output to " << OutputFile << " \n " );
@@ -685,7 +685,7 @@ Expected<int> CC::ExecuteProgram(const std::string &ProgramFile,
685
685
outs () << " <CC>" ;
686
686
outs ().flush ();
687
687
LLVM_DEBUG (errs () << " \n About to run:\t " ;
688
- for (unsigned i = 0 , e = CCArgs.size () - 1 ; i != e; ++i) errs ()
688
+ for (unsigned i = 0 , e = CCArgs.size (); i != e; ++i) errs ()
689
689
<< " " << CCArgs[i];
690
690
errs () << " \n " ;);
691
691
if (RunProgramWithTimeout (CCPath, CCArgs, " " , " " , " " ))
@@ -733,7 +733,7 @@ Expected<int> CC::ExecuteProgram(const std::string &ProgramFile,
733
733
outs ().flush ();
734
734
LLVM_DEBUG (
735
735
errs () << " \n About to run:\t " ;
736
- for (unsigned i = 0 , e = ProgramArgs.size () - 1 ; i != e; ++i) errs ()
736
+ for (unsigned i = 0 , e = ProgramArgs.size (); i != e; ++i) errs ()
737
737
<< " " << ProgramArgs[i];
738
738
errs () << " \n " ;);
739
739
@@ -829,7 +829,7 @@ Error CC::MakeSharedObject(const std::string &InputFile, FileType fileType,
829
829
outs () << " <CC>" ;
830
830
outs ().flush ();
831
831
LLVM_DEBUG (errs () << " \n About to run:\t " ;
832
- for (unsigned i = 0 , e = CCArgs.size () - 1 ; i != e; ++i) errs ()
832
+ for (unsigned i = 0 , e = CCArgs.size (); i != e; ++i) errs ()
833
833
<< " " << CCArgs[i];
834
834
errs () << " \n " ;);
835
835
if (RunProgramWithTimeout (CCPath, CCArgs, " " , " " , " " ))
0 commit comments