<p dir="ltr">Whatever. </p>
<br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 8, 2016, 5:20 PM Lang Hames <<a href="mailto:lhames@gmail.com">lhames@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">lhames accepted this revision.<br>
lhames added a comment.<br>
This revision is now accepted and ready to land.<br>
<br>
LGTM. Thanks Jim!<br>
<br>
<br>
================<br>
Comment at: lib/ReaderWriter/MachO/ArchHandler_x86_64.cpp:63<br>
@@ -62,2 +62,3 @@<br>
   bool isTLVAccess(const Reference &ref) const override {<br>
-    assert(ref.kindNamespace() == Reference::KindNamespace::mach_o);<br>
+    if (ref.kindNamespace() != Reference::KindNamespace::mach_o)<br>
+      return false;<br>
----------------<br>
echristo wrote:<br>
> Can you add a comment explaining how you could get here? That said, is the check worth it now? i.e. do we really need the early exit?<br>
This is consistent with how GOT references (which are handled very similarly) are checked. We may try to improve on it in the future for performance reasons, but I'm happy with it for now.<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D16009" rel="noreferrer" target="_blank">http://reviews.llvm.org/D16009</a><br>
<br>
<br>
<br>
</blockquote></div>