aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ExpandVectorPredication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
-rw-r--r--llvm/lib/CodeGen/ExpandVectorPredication.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/ExpandVectorPredication.cpp b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
index 515484c..ed95437 100644
--- a/llvm/lib/CodeGen/ExpandVectorPredication.cpp
+++ b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
@@ -444,15 +444,15 @@ CachingVPExpander::expandPredicationInMemoryIntrinsic(IRBuilder<> &Builder,
cast<VectorType>(DataParam->getType())->getElementType();
NewMemoryInst = Builder.CreateMaskedScatter(
DataParam, PtrParam,
- AlignOpt.getValueOr(DL.getPrefTypeAlign(ElementType)), MaskParam);
+ AlignOpt.value_or(DL.getPrefTypeAlign(ElementType)), MaskParam);
break;
}
case Intrinsic::vp_gather: {
auto *ElementType = cast<VectorType>(VPI.getType())->getElementType();
NewMemoryInst = Builder.CreateMaskedGather(
VPI.getType(), PtrParam,
- AlignOpt.getValueOr(DL.getPrefTypeAlign(ElementType)), MaskParam,
- nullptr, VPI.getName());
+ AlignOpt.value_or(DL.getPrefTypeAlign(ElementType)), MaskParam, nullptr,
+ VPI.getName());
break;
}
}