llvm::Error only enforces checking at the point that it goes out of scope.  So the example you mention should be supported, as long as you propagate the value all the way up and don't destroy it.  There's also ways to explicitly ignore an Error (similar to casting to void to make the compiler not warn about unused variables), so as a last resort we could put code like that in the SB implementation if we had to<br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 31, 2017 at 5:23 PM Jim Ingham <<a href="mailto:jingham@apple.com">jingham@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think we discussed this before, but we need an informational error object.  IIRC, the llvm::Error has to be checked.  But for instance if you ask a value object to evaluate itself, but you've moved to a section of code where the variable has no location, then evaluating that value will result in an error.  But that isn't an error the value object code needs to do anything about.  And it might go all the way up through the SB & Python API's before it's appropriate to check the error.<br class="gmail_msg">
<br class="gmail_msg">
IIRC, the llvm::Error is one of those "you have to check it or you get smacked by the compiler" dealies.  That's appropriate for some of our uses of Error, but not all.<br class="gmail_msg">
<br class="gmail_msg">
Jim<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
> On Jan 31, 2017, at 4:01 PM, Zachary Turner via Phabricator via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org" class="gmail_msg" target="_blank">lldb-commits@lists.llvm.org</a>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
> zturner added a comment.<br class="gmail_msg">
><br class="gmail_msg">
>> Move Error from Core -> Utility<br class="gmail_msg">
><br class="gmail_msg">
> Also, I almost forgot.<br class="gmail_msg">
><br class="gmail_msg">
> Long term: Delete and use `llvm::Error`<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> <a href="https://reviews.llvm.org/D29359" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D29359</a><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> _______________________________________________<br class="gmail_msg">
> lldb-commits mailing list<br class="gmail_msg">
> <a href="mailto:lldb-commits@lists.llvm.org" class="gmail_msg" target="_blank">lldb-commits@lists.llvm.org</a><br class="gmail_msg">
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>