DbgVariableLocation::extractFromMachineInstruction originally
returned a boolean indicating success. This change makes it return
an Optional<DbgVariableLocation> so we cannot try to access the fields
of the struct if they aren't valid.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
If we don't have any consumers that can use the error messages, I would rather return Optional<DbgVariableLocation>.
Comment Actions
lgtm
llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | ||
---|---|---|
33 ↗ | (On Diff #113185) | I think the idiomatic thing to return here is None |