This is an archive of the discontinued LLVM Phabricator instance.

Use windows baskslash on anonymous tag locations if using MSVCFormatting and it's not absolute path.
ClosedPublic

Authored by zequanwu on May 17 2023, 2:11 PM.

Details

Summary

This fixes a nondeterminism on debug info when building on windows natively vs
cross building to windows. The file path was created at here that uses host path separator.

Diff Detail

Event Timeline

zequanwu created this revision.May 17 2023, 2:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2023, 2:11 PM
zequanwu requested review of this revision.May 17 2023, 2:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2023, 2:11 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
zequanwu edited the summary of this revision. (Show Details)May 17 2023, 2:14 PM
zequanwu edited the summary of this revision. (Show Details)
rnk accepted this revision.May 18 2023, 10:52 AM

lgtm

This revision is now accepted and ready to land.May 18 2023, 10:52 AM
hans accepted this revision.May 19 2023, 4:04 AM

Nice! lgtm

clang/lib/AST/TypePrinter.cpp
1391

nit: If you want you could drop the "The following tries to" part to make this more concise.

zequanwu marked an inline comment as done.May 19 2023, 5:44 AM
This revision was landed with ongoing or failed builds.May 19 2023, 5:44 AM
This revision was automatically updated to reflect the committed changes.

Hello and good afternoon from the UK,

I believe this patch has caused failures on the following buildbot:

https://lab.llvm.org/buildbot/#/builders/216/builds/21493

are you able to take a look?

thanks,
Tom W

Hello and good afternoon from the UK,

I believe this patch has caused failures on the following buildbot:

https://lab.llvm.org/buildbot/#/builders/216/builds/21493

are you able to take a look?

thanks,
Tom W

Thanks for reporting. Hope this fix it: https://reviews.llvm.org/rGfe69bb64415ef6fe01ebbb1d1a801e85bd6bd879.