Skip to content

Commit 4fc7506

Browse files
authored
Revert "[flang] Fix seg fault CodeGenAction::executeAction() (llvm#78269)" (llvm#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 ```
1 parent 1f61507 commit 4fc7506

File tree

3 files changed

+0
-115
lines changed

3 files changed

+0
-115
lines changed

flang/lib/Frontend/FrontendActions.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,11 +1202,6 @@ void CodeGenAction::executeAction() {
12021202
if (!llvmModule)
12031203
generateLLVMIR();
12041204

1205-
// If generating the LLVM module failed, abort! No need for further error
1206-
// reporting since generateLLVMIR() does this already.
1207-
if (!llvmModule)
1208-
return;
1209-
12101205
// Set the triple based on the targetmachine (this comes compiler invocation
12111206
// and the command-line target option if specified, or the default if not
12121207
// given on the command-line).

flang/unittests/Frontend/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ set(LLVM_LINK_COMPONENTS
44
)
55

66
add_flang_unittest(FlangFrontendTests
7-
CodeGenActionTest.cpp
87
CompilerInstanceTest.cpp
98
FrontendActionTest.cpp
109
)

flang/unittests/Frontend/CodeGenActionTest.cpp

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)