Skip to content

Commit

Permalink
Revert "[flang] Fix seg fault CodeGenAction::executeAction() (#78269)…
Browse files Browse the repository at this point in the history
…" (#78667)

This reverts commit 99cae9a.

Temporarily until I reproduce and fix a linker issue:
```
FAILED: tools/flang/unittests/Frontend/FlangFrontendTests
...
/usr/bin/ld: tools/flang/unittests/Frontend/CMakeFiles/FlangFrontendTests.dir/CodeGenActionTest.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/usr/bin/ld: /work1/omp-nightly/build/git/trunk18.0/build/llvm-project/lib/libLLVMCore.so.18git: error adding symbols: DSO missing from command line
```
  • Loading branch information
ergawy committed Jan 19, 2024
1 parent 1f61507 commit 4fc7506
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 115 deletions.
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.

0 comments on commit 4fc7506

Please sign in to comment.