[all-commits] [llvm/llvm-project] 60c903: [flang] Silence over-eager warning about interoper...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Jul 11 12:44:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 60c90336b66c2df1b5ca3d2fb6041bb56c56759c
      https://github.com/llvm/llvm-project/commit/60c90336b66c2df1b5ca3d2fb6041bb56c56759c
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-07-11 (Thu, 11 Jul 2024)

  Changed paths:
    M flang/include/flang/Evaluate/type.h
    M flang/include/flang/Semantics/type.h
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/lib/Evaluate/type.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/type.cpp
    M flang/test/Semantics/c_loc01.f90

  Log Message:
  -----------
  [flang] Silence over-eager warning about interoperable character length (#97353)

Make the results of the two IsInteroperableIntrinsicType() utility
routines a tri-state std::optional<bool> so that cases where the
character length is simply unknown can be distinguished from those cases
where the length is known and not acceptable. Use this distinction to
not emit a confusing warning about interoperability with C_LOC()
arguments when the length is unknown and might well be acceptable during
execution.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list