Skip to content

Commit

Permalink
[Flang] Remove unnecessary static_assert
Browse files Browse the repository at this point in the history
Certain compilers do not seem to like the static assert with a string, causing
a implicit conversion. It can be removed as it should not be reachable and the
mlir::failure should handle it correctly in case it is.
  • Loading branch information
davemgreen committed Jan 9, 2024
1 parent 8ca0364 commit 9052512
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,6 @@ class ReductionElementalConversion : public mlir::OpRewritePattern<Op> {
reduction);
};
} else {
static_assert("Expected Op to be handled");
return mlir::failure();
}

Expand Down

0 comments on commit 9052512

Please sign in to comment.