[all-commits] [llvm/llvm-project] 4f62a1: [flang] Allow user to define free via BIND(C) (#78...
jeanPerier via All-commits
all-commits at lists.llvm.org
Thu Jan 18 00:37:57 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4f62a183d9101a90d62e2a278d0513e9d2afba43
https://github.com/llvm/llvm-project/commit/4f62a183d9101a90d62e2a278d0513e9d2afba43
Author: jeanPerier <jperier at nvidia.com>
Date: 2024-01-18 (Thu, 18 Jan 2024)
Changed paths:
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
A flang/test/Fir/already-defined-free.fir
Log Message:
-----------
[flang] Allow user to define free via BIND(C) (#78428)
A user defining and using free/malloc via BIND(C) would previously cause
flang to crash when generating LLVM IR with error "redefinition of
symbol named 'free'". This was caused by flang codegen not expecting to
find a mlir::func::FuncOp definition of these function and emitting a
new mlir::LLVM::FuncOp that later conflicted when translating the
mlir::func::FuncOp.
More information about the All-commits
mailing list