[llvm] d7ea6ce - [Support] fix user_cache_directory on mac

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 11:36:23 PDT 2020


Any chance of testing this? (maybe even a unit test? (even if it's
uninteresting on other platforms, perhaps)?)

On Mon, Jul 6, 2020 at 3:54 AM Sam McCall via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>
>
> 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
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list