[all-commits] [llvm/llvm-project] 10317d: [flang][re-apply] Fix seg fault CodeGenAction::exe...
Kareem Ergawy via All-commits
all-commits at lists.llvm.org
Fri Jan 19 01:40:37 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 10317da20309378365e116ce5d4f87c40d6ad25d
https://github.com/llvm/llvm-project/commit/10317da20309378365e116ce5d4f87c40d6ad25d
Author: Kareem Ergawy <kareem.ergawy at amd.com>
Date: 2024-01-19 (Fri, 19 Jan 2024)
Changed paths:
M flang/lib/Frontend/FrontendActions.cpp
M flang/unittests/Frontend/CMakeLists.txt
A flang/unittests/Frontend/CodeGenActionTest.cpp
Log Message:
-----------
[flang][re-apply] Fix seg fault CodeGenAction::executeAction() (#78672)
If `generateLLVMIR()` fails, we still continue using the module we
failed to generate which causes a seg fault if LLVM code-gen failed for
some reason or another. This commit fixes this issue.
Re-applies PR #78269 and adds LLVM and MLIR dependencies that were
missed in the PR. The missing libs were: `LLVMCore` & `MLIRIR`.
This reverts commit 4fc75062745eb5232ea60c37b9ffe61177efa12a.
More information about the All-commits
mailing list