From bbbb4393ee67a470016291bb3dc8abc777132cf0 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 19 Jul 2022 19:50:43 -0700 Subject: [PATCH] [CodeGen] Use value_or instead of getValueOr (NFC) --- llvm/lib/CodeGen/ExpandVectorPredication.cpp | 6 +++--- 1 file 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(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(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; } } -- 2.7.4