[flang-commits] [flang] cb0f98e - [flang] Force the use of intrinsic builtins in type_info

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Thu Jul 6 07:40:18 PDT 2023


Author: Leandro Lupori
Date: 2023-07-06T11:39:30-03:00
New Revision: cb0f98e10b7cfdd4f3e936b2a00cdaf29e5c8659

URL: https://github.com/llvm/llvm-project/commit/cb0f98e10b7cfdd4f3e936b2a00cdaf29e5c8659
DIFF: https://github.com/llvm/llvm-project/commit/cb0f98e10b7cfdd4f3e936b2a00cdaf29e5c8659.diff

LOG: [flang] Force the use of intrinsic builtins in type_info

This ensures that the __Fortran_builtins module is always used
as an intrinsic module by __Fortran_type_info, which avoids issues
when, for instance, the intrinsic modules dir is present in the
include paths.

Fixes https://github.com/llvm/llvm-project/issues/63592

Reviewed By: klausler

Differential Revision: https://reviews.llvm.org/D154452

Added: 
    

Modified: 
    flang/module/__fortran_type_info.f90

Removed: 
    


################################################################################
diff  --git a/flang/module/__fortran_type_info.f90 b/flang/module/__fortran_type_info.f90
index 5a92ff29999593..72c55fa8d06f55 100644
--- a/flang/module/__fortran_type_info.f90
+++ b/flang/module/__fortran_type_info.f90
@@ -13,7 +13,7 @@
 
 module __Fortran_type_info
 
-  use __Fortran_builtins, only: __builtin_c_ptr, __builtin_c_funptr
+  use, intrinsic :: __Fortran_builtins, only: __builtin_c_ptr, __builtin_c_funptr
 
   private
 


        


More information about the flang-commits mailing list