aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorHarini0924 <79345568+Harini0924@users.noreply.github.com>2024-08-14 14:49:19 -0700
committerGitHub <noreply@github.com>2024-08-14 14:49:19 -0700
commite9b7983fc6826eceb819a3cdb0301c401847ade4 (patch)
treea8fbc9955b6469bfab14079692de3e2992c8ed95 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent4bac8fd8904904bc7d502f39851eef50b5afff73 (diff)
downloadllvm-e9b7983fc6826eceb819a3cdb0301c401847ade4.zip
llvm-e9b7983fc6826eceb819a3cdb0301c401847ade4.tar.gz
llvm-e9b7983fc6826eceb819a3cdb0301c401847ade4.tar.bz2
[llvm-lit] Fix Unhashable TypeError when using lit's internal shell (#101590)
When using the lit internal shell with the command: ``` LIT_USE_INTERNAL_SHELL=1 ninja check-compiler-rt ``` The follow error is encountered: ``` File "TestRunner.py", line 770, in _executeShCmd inproc_builtin = inproc_builtins.get(args[0], None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: unhashable type: 'GlobItem' ``` This error is in a compiler-rt file: ``` TestCases/Linux/long-object-path.cpp ``` This error occurs because `args[0]` is of type `GlobItem`, which is not hashable, leading to a `TypeError` when it is passed in `inproc_builtins.get()`. To resolve this issue, I have updated the implementation to ensure that `args[0]` is hashable before it is used in `inproc_builtins`. fixes: #102389 [link to RFC](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179)
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions