Skip to content

Commit 3d6aac3

Browse files
authored
[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] ```
1 parent 6640b0a commit 3d6aac3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/lib/Lower/Support/ReductionProcessor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ ReductionProcessor::getReductionType(const fir::ReduceOperationEnum &redOp) {
134134
case fir::ReduceOperationEnum::MIN:
135135
return ReductionIdentifier::MIN;
136136
}
137+
llvm_unreachable("Unhandled ReductionIdentifier case");
137138
}
138139

139140
bool ReductionProcessor::supportedIntrinsicProcReduction(

0 commit comments

Comments
 (0)