[llvm-branch-commits] [flang] 9e87433 - flang: Fix module-debug-file-loc-linux.f90 in standalone
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Aug 15 23:19:18 PDT 2023
Author: Tulio Magno Quites Machado Filho
Date: 2023-08-16T08:16:30+02:00
New Revision: 9e87433217bd7cff6034a5a2672490e70c08bf7f
URL: https://github.com/llvm/llvm-project/commit/9e87433217bd7cff6034a5a2672490e70c08bf7f
DIFF: https://github.com/llvm/llvm-project/commit/9e87433217bd7cff6034a5a2672490e70c08bf7f.diff
LOG: flang: Fix module-debug-file-loc-linux.f90 in standalone
In a standalone build, there is no guarantee that flang code would be
saved in a directory named flang. Check only the path under flang's root
directory.
Reviewed By: #flang, kiranchandramohan
Differential Revision: https://reviews.llvm.org/D157642
(cherry picked from commit 94f377d880376fa6d5653430cad2777e51759d48)
Added:
Modified:
flang/test/Lower/module-debug-file-loc-linux.f90
Removed:
################################################################################
diff --git a/flang/test/Lower/module-debug-file-loc-linux.f90 b/flang/test/Lower/module-debug-file-loc-linux.f90
index 4419c7672e2094..454fad98e9af07 100644
--- a/flang/test/Lower/module-debug-file-loc-linux.f90
+++ b/flang/test/Lower/module-debug-file-loc-linux.f90
@@ -11,4 +11,4 @@ subroutine sb1()
! CHECK: func.func @_QPsb1() {
! CHECK: }
! CHECK: } loc(#[[MODULE_LOC:.*]])
-! CHECK: #[[MODULE_LOC]] = loc("/{{.*}}flang/test/Lower/module-debug-file-loc-linux.f90":0:0)
+! CHECK: #[[MODULE_LOC]] = loc("/{{.*}}/test/Lower/module-debug-file-loc-linux.f90":0:0)
More information about the llvm-branch-commits
mailing list