Skip to content

Revert "[flang] Fix seg fault CodeGenAction::executeAction() (#78269)" #78667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions flang/lib/Frontend/FrontendActions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,11 +1202,6 @@ void CodeGenAction::executeAction() {
if (!llvmModule)
generateLLVMIR();

// If generating the LLVM module failed, abort! No need for further error
// reporting since generateLLVMIR() does this already.
if (!llvmModule)
return;

// Set the triple based on the targetmachine (this comes compiler invocation
// and the command-line target option if specified, or the default if not
// given on the command-line).
Expand Down
1 change: 0 additions & 1 deletion flang/unittests/Frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set(LLVM_LINK_COMPONENTS
)

add_flang_unittest(FlangFrontendTests
CodeGenActionTest.cpp
CompilerInstanceTest.cpp
FrontendActionTest.cpp
)
Expand Down
109 changes: 0 additions & 109 deletions flang/unittests/Frontend/CodeGenActionTest.cpp

This file was deleted.