Debian Codegraph @

build/build-clang/revert-llvmorg-19-init-7486-g225e14e5b6d6.patch

raw
1 From 846c166a4b82fe11f985fd2152593460b997af1d Mon Sep 17 00:00:00 2001
2 From: Mike Hommey <[email protected]>
3 Date: Tue, 8 Oct 2024 09:43:21 +0900
4 Subject: [PATCH] Revert "[Support][Windows] Use the original path if
5 GetFinalPathNameByHandleW() failed (#87749)"
6
7 This reverts commit 225e14e5b6d64e1f63da39fa7fe31d2ebb08260d because it
8 piles up on f11b056c02cca28fe0b82ec44c59537035100e67 which we also
9 revert.
10 ---
11 llvm/lib/Support/Windows/Path.inc | 4 +---
12 1 file changed, 1 insertion(+), 3 deletions(-)
13
14 diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
15 index c4bd5e247235..66ca1e432739 100644
16 --- a/llvm/lib/Support/Windows/Path.inc
17 +++ b/llvm/lib/Support/Windows/Path.inc
18 @@ -157,9 +157,7 @@ std::string getMainExecutable(const char *argv0, void *MainExecAddr) {
19
20 SmallString<256> RealPath;
21 sys::fs::real_path(PathNameUTF8, RealPath);
22 - if (RealPath.size())
23 - return std::string(RealPath);
24 - return std::string(PathNameUTF8.data());
25 + return std::string(RealPath);
26 }
27
28 UniqueID file_status::getUniqueID() const {
29 --
30 2.47.0.1.g59ce1bf855
31