[PATCH] D37279: [codeview] make DbgVariableLocation::extractFromMachineInstruction use Expected

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 30 08:45:38 PDT 2017


rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

lgtm



================
Comment at: llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp:33
   if (!Instruction.isDebugValue())
-    return false;
+    return Optional<DbgVariableLocation>();
   if (!Instruction.getOperand(0).isReg())
----------------
I think the idiomatic thing to return here is `None`


https://reviews.llvm.org/D37279





More information about the llvm-commits mailing list