[clang] [llvm] [CloneFunction][DebugInfo] Avoid cloning DILocalVariables of inlined functions (PR #75385)

Vladislav Dzhidzhoev via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 26 08:16:56 PST 2024


dzhidzhoev wrote:

> Hmmm, that's unexpected -- I reverted the revert (tree here, contains one unrelated commit: https://github.com/jmorse/llvm-project/tree/reapply-localvars-patch) and rebuilt. The assertion-failure occurs just with `llc foobar.ll -o out.o -filetype=obj`, where foobar.ll is the contents of the gist file linked. For the avoidance of doubt, it's:
> 
> ```
> $ wget https://gist.githubusercontent.com/jmorse/b0248c3c9f9195487ffd7c7431a8d15e/raw/e57ca0417b77fe04f9551a0a69ce58f0db697527/gistfile1.txt
> $ mv gistfile1.txt foobar.ll
> $ md5sum foobar.ll
> d6c888d4e163545da596071fb5143377  foobar.ll
> ```
> 
> I don't think there's anything special about the build -- it's a CMAKE_BUILD_TYPE=Release build with LLVM_ENABLE_ASSERTIONS=On, built with clang-14 as shipped by ubuntu.

Thanks a lot! I've stubbornly tried to pass it through llvm-as before feeding it to llc.

https://github.com/llvm/llvm-project/pull/75385


More information about the cfe-commits mailing list