diff options
author | Tom Eccles <tom.eccles@arm.com> | 2025-07-14 17:59:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-14 17:59:50 +0100 |
commit | 3d6aac31fcb5f7a988be5e484e44bdc9033265c5 (patch) | |
tree | c5c7b074aa778154f32824401bd70ae3048558fb | |
parent | 6640b0a293c07c9a6e4ea3476453781f979726b7 (diff) | |
download | llvm-3d6aac31fcb5f7a988be5e484e44bdc9033265c5.zip llvm-3d6aac31fcb5f7a988be5e484e44bdc9033265c5.tar.gz llvm-3d6aac31fcb5f7a988be5e484e44bdc9033265c5.tar.bz2 |
[flang][Lower] fix warning (#148667)
GCC 9.3.0
```
.../flang/lib/Lower/Support/ReductionProcessor.cpp:137:1: error: control reaches end of non-void function [-Werror=return-type]
```
-rw-r--r-- | flang/lib/Lower/Support/ReductionProcessor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/flang/lib/Lower/Support/ReductionProcessor.cpp b/flang/lib/Lower/Support/ReductionProcessor.cpp index 77cb15a..c0be1e2 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( |