[all-commits] [llvm/llvm-project] 437a48: [flang] Handle absent optional in LOC (#73530)
jeanPerier via All-commits
all-commits at lists.llvm.org
Wed Nov 29 04:21:58 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 437a48b2d9bfc6e38a0ca43f1cee48ceaf0fe249
https://github.com/llvm/llvm-project/commit/437a48b2d9bfc6e38a0ca43f1cee48ceaf0fe249
Author: jeanPerier <jperier at nvidia.com>
Date: 2023-11-29 (Wed, 29 Nov 2023)
Changed paths:
M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
M flang/test/Lower/Intrinsics/loc.f90
Log Message:
-----------
[flang] Handle absent optional in LOC (#73530)
LOC is a GNU extension, so gfortran is the reference for it, and it
accepts absent OPTIONAL and returns zero. Support this use case in flang
too.
Update the LOC test to use HLFIR while touching it.
Fixes https://github.com/llvm/llvm-project/issues/72823.
More information about the All-commits
mailing list