Skip to content

Conversation

@tblah
Copy link
Contributor

@tblah tblah commented Jul 14, 2025

GCC 9.3.0

.../flang/lib/Lower/Support/ReductionProcessor.cpp:137:1: error: control reaches end of non-void function [-Werror=return-type] 
GCC 9.3.0 ``` .../flang/lib/Lower/Support/ReductionProcessor.cpp:137:1: error: control reaches end of non-void function [-Werror=return-type] ```
@tblah tblah requested review from ergawy and klausler July 14, 2025 16:45
@llvmbot llvmbot added flang Flang issues not falling into any other category flang:fir-hlfir labels Jul 14, 2025
@llvmbot
Copy link
Member

llvmbot commented Jul 14, 2025

@llvm/pr-subscribers-flang-fir-hlfir

Author: Tom Eccles (tblah)

Changes

GCC 9.3.0

.../flang/lib/Lower/Support/ReductionProcessor.cpp:137:1: error: control reaches end of non-void function [-Werror=return-type] 

Full diff: https://github.com/llvm/llvm-project/pull/148667.diff

1 Files Affected:

  • (modified) flang/lib/Lower/Support/ReductionProcessor.cpp (+1)
diff --git a/flang/lib/Lower/Support/ReductionProcessor.cpp b/flang/lib/Lower/Support/ReductionProcessor.cpp index 77cb15a2a77ca..c0be1e229f825 100644 --- a/flang/lib/Lower/Support/ReductionProcessor.cpp +++ b/flang/lib/Lower/Support/ReductionProcessor.cpp @@ -134,6 +134,7 @@ ReductionProcessor::getReductionType(const fir::ReduceOperationEnum &redOp) { case fir::ReduceOperationEnum::MIN: return ReductionIdentifier::MIN; } + llvm_unreachable("Unhandled ReductionIdentifier case"); } bool ReductionProcessor::supportedIntrinsicProcReduction( 
@tblah tblah merged commit 3d6aac3 into llvm:main Jul 14, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang:fir-hlfir flang Flang issues not falling into any other category

3 participants