aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
index f0b1f73..1ad2362 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
@@ -36,9 +36,9 @@ DbgVariableLocation::extractFromMachineInstruction(
DbgVariableLocation Location;
// Variables calculated from multiple locations can't be represented here.
if (Instruction.getNumDebugOperands() != 1)
- return None;
+ return std::nullopt;
if (!Instruction.getDebugOperand(0).isReg())
- return None;
+ return std::nullopt;
Location.Register = Instruction.getDebugOperand(0).getReg();
Location.FragmentInfo.reset();
// We only handle expressions generated by DIExpression::appendOffset,
@@ -53,7 +53,7 @@ DbgVariableLocation::extractFromMachineInstruction(
Op->getOp() == dwarf::DW_OP_LLVM_arg)
++Op;
else
- return None;
+ return std::nullopt;
}
while (Op != DIExpr->expr_op_end()) {
switch (Op->getOp()) {
@@ -84,7 +84,7 @@ DbgVariableLocation::extractFromMachineInstruction(
Offset = 0;
break;
default:
- return None;
+ return std::nullopt;
}
++Op;
}