[llvm] Normalize file path to fix problems with different folder separators. (PR #215225)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 01:57:27 PDT 2026


================
@@ -67,7 +67,8 @@ attributes #1 = { nounwind readnone }
 !23 = !DILocation(line: 8, column: 3, scope: !14)
 ; LINES: <main>:
 ; LINES-NEXT: main():
-; LINES-NEXT: SRC_COMPDIR/source-interleave-hexagon.c:6
+;; Show that directory separators are normalized to the preferred character.
+; LINES-NEXT: Inputs[[SEP]]source-interleave-hexagon.c:6
----------------
jh7370 wrote:

Do you have Hexagon enabled in your targets locally? I'm looking at this test change fresh and I'm somewhat surprised the old behaviour (checking directly against `SRC_COMPDIR`) has changed with your PR.

https://github.com/llvm/llvm-project/pull/215225


More information about the llvm-commits mailing list