[all-commits] [llvm/llvm-project] 68efb4: [dsymutil] Fix assertion in the Reproducer/FileCol...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Mon Nov 14 12:34:31 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 68efb4772c0d0e60cbfb09ea619b58d80c31ff0f
https://github.com/llvm/llvm-project/commit/68efb4772c0d0e60cbfb09ea619b58d80c31ff0f
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