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
- Build Status
Buildable 9753 Build 9753: arc lint + arc unit
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–35 | I think the idiomatic thing to return here is None |
I think the idiomatic thing to return here is None