[flang-commits] [flang] 94f377d - flang: Fix module-debug-file-loc-linux.f90 in standalone

Tulio Magno Quites Machado Filho via flang-commits flang-commits at lists.llvm.org
Mon Aug 14 06:23:48 PDT 2023


Author: Tulio Magno Quites Machado Filho
Date: 2023-08-14T10:23:23-03:00
New Revision: 94f377d880376fa6d5653430cad2777e51759d48

URL: https://github.com/llvm/llvm-project/commit/94f377d880376fa6d5653430cad2777e51759d48
DIFF: https://github.com/llvm/llvm-project/commit/94f377d880376fa6d5653430cad2777e51759d48.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

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 flang-commits mailing list