[all-commits] [llvm/llvm-project] 177374: [dsymutil] Fix assertion in the Reproducer/FileCol...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Mon Nov 14 19:11:50 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 17737437ed7bb4ca646020b17df822865247d193
https://github.com/llvm/llvm-project/commit/17737437ed7bb4ca646020b17df822865247d193
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2022-11-14 (Mon, 14 Nov 2022)
Changed paths:
M llvm/lib/Support/FileCollector.cpp
M llvm/test/tools/dsymutil/X86/reproducer.test
M llvm/tools/dsymutil/Reproducer.cpp
Log Message:
-----------
[dsymutil] Fix assertion in the Reproducer/FileCollector when TMPDIR is empty
Fix a assertion in dsymutil coming from the Reproducer/FileCollector.
When TMPDIR is empty, the root becomes a relative path, triggering an
assertion when adding a relative path to the VFS mapping. This patch
fixes the issue by resolving the relative path and also moves the
assertion up to make it easier to diagnose these issues in the future.
rdar://102170986
Differential revision: https://reviews.llvm.org/D137959
More information about the All-commits
mailing list