[all-commits] [llvm/llvm-project] 2cdb18: [ORC] Fix argv handling in runAsMain / lli.

lhames via All-commits all-commits at lists.llvm.org
Sat Jan 11 13:21:58 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2cdb18afda841392002feafda21af31854c195b3
      https://github.com/llvm/llvm-project/commit/2cdb18afda841392002feafda21af31854c195b3
  Author: Lang Hames <lhames at gmail.com>
  Date:   2020-01-11 (Sat, 11 Jan 2020)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp
    A llvm/test/ExecutionEngine/OrcLazy/printargv.ll
    M llvm/tools/lli/lli.cpp

  Log Message:
  -----------
  [ORC] Fix argv handling in runAsMain / lli.

This fixes an off-by-one error in the argc value computed by runAsMain, and
switches lli back to using the input bitcode (rather than the string "lli") as
the effective program name.

Thanks to Stefan Graenitz for spotting the bug.




More information about the All-commits mailing list