[llvm] d7ea6ce - [Support] fix user_cache_directory on mac
Sam McCall via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 03:54:20 PDT 2020
Author: Sam McCall
Date: 2020-07-06T12:54:11+02:00
New Revision: d7ea6ce809a4413afb1edafa17ba291b39129f52
URL: https://github.com/llvm/llvm-project/commit/d7ea6ce809a4413afb1edafa17ba291b39129f52
DIFF: https://github.com/llvm/llvm-project/commit/d7ea6ce809a4413afb1edafa17ba291b39129f52.diff
LOG: [Support] fix user_cache_directory on mac
Added:
Modified:
llvm/lib/Support/Unix/Path.inc
Removed:
################################################################################
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index c35db79cbd8a..d91b269cc6d3 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -1193,7 +1193,7 @@ bool user_config_directory(SmallVectorImpl<char> &result) {
#ifdef __APPLE__
// Mac: ~/Library/Preferences/
if (home_directory(result)) {
- append("Library", "Preferences");
+ append(result, "Library", "Preferences");
return true;
}
#else
More information about the llvm-commits
mailing list