Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refuse to compile using buggy Clang versions (14.0.0-14.0.4)
Clang versions 14.0.0 to 14.0.4 (included) miscompile Dr.Jit / Mitsuba. The default initialization of `DiffArray<...>::m_index` is optimized away, which then causes crashes when AD reference counting operations access nonexistent variable indices. The issue is resolved in 14.0.5. I did not bisect the specific LLVM commit, though I suspect that the following loop optimization fixes are involved: - llvm/llvm-project@b75bf75 - llvm/llvm-project@d350783 Working around the issue looks to be hopeless, to this commit reverts a previous attempted fix (bfab9ac) and introduces a hard version check.
- Loading branch information