Skip to content

Commit

Permalink
[VectorExtOps] Update usage of remove Optional::hasValue.
Browse files Browse the repository at this point in the history
That function has been deprecated for a while and removed in 4b6b248 in
the LLVM mono repo.
  • Loading branch information
ingomueller-net committed Jan 21, 2023
1 parent 3d82c36 commit 03bb117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dialect/VectorExt/IR/VectorExtOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void PredicateOp::getSuccessorRegions(
Optional<unsigned> index, ArrayRef<Attribute> operands,
SmallVectorImpl<RegionSuccessor> &regions) {
// The `truePredicate` region branch back to the parent operation.
if (index.hasValue()) {
if (index.has_value()) {
regions.push_back(RegionSuccessor(getResults()));
return;
}
Expand Down

0 comments on commit 03bb117

Please sign in to comment.