[llvm] 23ca552 - [AArch64] Use std::optional in AArch64ISelLowering.cpp (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 25 22:06:07 PST 2022
Author: Kazu Hirata
Date: 2022-11-25T22:06:01-08:00
New Revision: 23ca55231a4c58021a3490b932fd63bf4770e24a
URL: https://github.com/llvm/llvm-project/commit/23ca55231a4c58021a3490b932fd63bf4770e24a
DIFF: https://github.com/llvm/llvm-project/commit/23ca55231a4c58021a3490b932fd63bf4770e24a.diff
LOG: [AArch64] Use std::optional in AArch64ISelLowering.cpp (NFC)
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Added:
Modified:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 72a9117d1f3c..9af193de58d4 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -16933,7 +16933,7 @@ static bool isCMP(SDValue Op) {
// (CSEL 1 0 CC Cond) => CC
// (CSEL 0 1 CC Cond) => !CC
-static Optional<AArch64CC::CondCode> getCSETCondCode(SDValue Op) {
+static std::optional<AArch64CC::CondCode> getCSETCondCode(SDValue Op) {
if (Op.getOpcode() != AArch64ISD::CSEL)
return None;
auto CC = static_cast<AArch64CC::CondCode>(Op.getConstantOperandVal(2));
More information about the llvm-commits
mailing list