diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-19 20:15:44 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-19 20:15:44 -0700 |
commit | 41ae78ea3a931018cf2be58fb9eaa98bfeaf2db6 (patch) | |
tree | cc82c29312c660360371d8245811a76608dde64f /llvm/lib/CodeGen/ExpandVectorPredication.cpp | |
parent | 5dd19ada571b9190811f3c4d8cd1c2bb5f56227c (diff) | |
download | llvm-41ae78ea3a931018cf2be58fb9eaa98bfeaf2db6.zip llvm-41ae78ea3a931018cf2be58fb9eaa98bfeaf2db6.tar.gz llvm-41ae78ea3a931018cf2be58fb9eaa98bfeaf2db6.tar.bz2 |
Use has_value instead of hasValue (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ExpandVectorPredication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ExpandVectorPredication.cpp b/llvm/lib/CodeGen/ExpandVectorPredication.cpp index ed95437..8840ddd 100644 --- a/llvm/lib/CodeGen/ExpandVectorPredication.cpp +++ b/llvm/lib/CodeGen/ExpandVectorPredication.cpp @@ -419,7 +419,7 @@ CachingVPExpander::expandPredicationInMemoryIntrinsic(IRBuilder<> &Builder, if (IsUnmasked) { StoreInst *NewStore = Builder.CreateStore(DataParam, PtrParam, /*IsVolatile*/ false); - if (AlignOpt.hasValue()) + if (AlignOpt.has_value()) NewStore->setAlignment(AlignOpt.getValue()); NewMemoryInst = NewStore; } else @@ -431,7 +431,7 @@ CachingVPExpander::expandPredicationInMemoryIntrinsic(IRBuilder<> &Builder, if (IsUnmasked) { LoadInst *NewLoad = Builder.CreateLoad(VPI.getType(), PtrParam, /*IsVolatile*/ false); - if (AlignOpt.hasValue()) + if (AlignOpt.has_value()) NewLoad->setAlignment(AlignOpt.getValue()); NewMemoryInst = NewLoad; } else |